summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Economos <w6rz@comcast.net>2019-01-12 07:57:27 -0800
committerMartin Braun <martin.braun@ettus.com>2019-01-14 10:11:35 -0800
commit21c04336f6c5ead3c423e6cd9b4822fff79b506a (patch)
treec9122a4d613179d7daf9d7006ebab72064fa0941
parentc63227bebddc4e8ae3976fc4c928ed1274bd8cd3 (diff)
blocks: Suppress warnings for 32-bit ARM architectures
add_const_ii_impl was using floating point maximum ranges, probably a leftover part of the removal of gengen. Now, max ranges are ints.
-rw-r--r--gr-blocks/lib/add_const_ii_impl.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-blocks/lib/add_const_ii_impl.cc b/gr-blocks/lib/add_const_ii_impl.cc
index 540328a59f..de81af5b26 100644
--- a/gr-blocks/lib/add_const_ii_impl.cc
+++ b/gr-blocks/lib/add_const_ii_impl.cc
@@ -81,8 +81,8 @@ namespace gr {
rpcbasic_sptr(new rpcbasic_register_get<add_const_ii, int>(
alias(), "Constant",
&add_const_ii::k,
- pmt::from_long(-4.29e9),
- pmt::from_long(4.29e9),
+ pmt::from_long(-2147483648),
+ pmt::from_long(2147483647),
pmt::from_long(0),
"", "Constant to add", RPC_PRIVLVL_MIN,
DISPTIME | DISPOPTCPLX | DISPOPTSTRIP)));
@@ -91,8 +91,8 @@ namespace gr {
rpcbasic_sptr(new rpcbasic_register_set<add_const_ii, int>(
alias(), "Constant",
&add_const_ii::set_k,
- pmt::from_long(-4.29e9),
- pmt::from_long(4.29e9),
+ pmt::from_long(-2147483648),
+ pmt::from_long(2147483647),
pmt::from_long(0),
"", "Constant to add",
RPC_PRIVLVL_MIN, DISPNULL)));