summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnuradio-core/src/lib/general/gr_glfsr_source_b.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/general/gr_glfsr_source_b.cc b/gnuradio-core/src/lib/general/gr_glfsr_source_b.cc
index 312edb98d..2bac49d94 100644
--- a/gnuradio-core/src/lib/general/gr_glfsr_source_b.cc
+++ b/gnuradio-core/src/lib/general/gr_glfsr_source_b.cc
@@ -45,7 +45,7 @@ gr_glfsr_source_b::gr_glfsr_source_b(int degree, bool repeat, int mask, int seed
{
if (degree < 1 || degree > 32)
throw std::runtime_error("gr_glfsr_source_b: degree must be between 1 and 32 inclusive");
- d_length = (int)(1ULL << degree)-1;
+ d_length = (unsigned int)((1ULL << degree)-1);
if (mask == 0)
mask = gri_glfsr::glfsr_mask(degree);