commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 07/08: pager & digital: add explicit type t


From: git
Subject: [Commit-gnuradio] [gnuradio] 07/08: pager & digital: add explicit type to constants that could be interpreted in other ways, to make various compilers happy.
Date: Tue, 31 Mar 2015 20:37:40 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 9332cc4dcbbdfc4a247c07819c020627853b3340
Author: Michael Dickens <address@hidden>
Date:   Wed Mar 18 12:57:26 2015 -0400

    pager & digital: add explicit type to constants that could be interpreted 
in other ways, to make various compilers happy.
---
 gr-digital/lib/glfsr.cc    |  2 +-
 gr-pager/lib/flex_modes.cc | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gr-digital/lib/glfsr.cc b/gr-digital/lib/glfsr.cc
index fc2762f..fa6c765 100644
--- a/gr-digital/lib/glfsr.cc
+++ b/gr-digital/lib/glfsr.cc
@@ -59,7 +59,7 @@ namespace gr {
       0x10000002,              // x^29 + x^2 + 1
       0x20000029,              // x^30 + x^4 + x^1 + 1
       0x40000004,              // x^31 + x^3 + 1
-      0x80000057               // x^32 + x^7 + x^5 + x^3 + x^2 + x^1 + 1
+      (int) 0x80000057         // x^32 + x^7 + x^5 + x^3 + x^2 + x^1 + 1
     };
 
     glfsr::~glfsr()
diff --git a/gr-pager/lib/flex_modes.cc b/gr-pager/lib/flex_modes.cc
index bb54733..333883f 100644
--- a/gr-pager/lib/flex_modes.cc
+++ b/gr-pager/lib/flex_modes.cc
@@ -28,11 +28,11 @@ namespace gr {
     const flex_mode_t
     flex_modes[] =
       {
-       { 0x870C78F3, 1600, 2 },
-       { 0xB0684F97, 1600, 4 },
-       { 0x7B1884E7, 3200, 2 },
-       { 0xDEA0215F, 3200, 4 },
-       { 0x4C7CB383, 3200, 4 }
+       { (int32_t) 0x870C78F3, 1600, 2 },
+       { (int32_t) 0xB0684F97, 1600, 4 },
+       { (int32_t) 0x7B1884E7, 3200, 2 },
+       { (int32_t) 0xDEA0215F, 3200, 4 },
+       { (int32_t) 0x4C7CB383, 3200, 4 }
       };
 
     const int num_flex_modes = sizeof(flex_modes)/sizeof(flex_modes[0]);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]