diff options
author | jcorgan | 2007-02-23 20:18:36 +0000 |
---|---|---|
committer | jcorgan | 2007-02-23 20:18:36 +0000 |
commit | 5cc50f1242f072f8a2dcf6a30c3c48ea3f6afeff (patch) | |
tree | 3052ea38271a853bc950286c808cd2cd9b99e324 /gnuradio-core/src | |
parent | b459380b7143f7e048d1d7ca3e6c8a04d563b9f3 (diff) | |
download | gnuradio-5cc50f1242f072f8a2dcf6a30c3c48ea3f6afeff.tar.gz gnuradio-5cc50f1242f072f8a2dcf6a30c3c48ea3f6afeff.tar.bz2 gnuradio-5cc50f1242f072f8a2dcf6a30c3c48ea3f6afeff.zip |
Fix miscalculated length when degree is 32.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4616 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_glfsr_source_b.cc | 2 |
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); |