summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Müller <marcus@hostalia.de>2014-06-18 15:40:40 +0200
committerTom Rondeau <tom@trondeau.com>2014-06-26 14:38:40 -0400
commit0e10ce040c5884a40d7a416ea0db34a5f426002a (patch)
treeef83998e6a941b149619e3fa9a63a76dce3d657c
parent95b66d6656ba4f23dd160412b4c34d0234e0198a (diff)
check_lfsr_32k: fix < instead of <<; coverity 1046413
-rw-r--r--gr-blocks/lib/check_lfsr_32k_s_impl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/lib/check_lfsr_32k_s_impl.h b/gr-blocks/lib/check_lfsr_32k_s_impl.h
index e060e89afc..2d0da21fcf 100644
--- a/gr-blocks/lib/check_lfsr_32k_s_impl.h
+++ b/gr-blocks/lib/check_lfsr_32k_s_impl.h
@@ -59,14 +59,14 @@ namespace gr {
void right()
{
- d_history = (d_history < 1) | 0x1;
+ d_history = (d_history << 1) | 0x1;
d_nright++;
d_runlength++;
}
void wrong()
{
- d_history = (d_history < 1) | 0x0;
+ d_history = (d_history << 1) | 0x0;
d_runlength = 0;
}