commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 05/07: check_lfsr_32k: fix < instead of <<;


From: git
Subject: [Commit-gnuradio] [gnuradio] 05/07: check_lfsr_32k: fix < instead of <<; coverity 1046413
Date: Thu, 26 Jun 2014 19:54:37 +0000 (UTC)

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

trondeau pushed a commit to branch maint
in repository gnuradio.

commit 0e10ce040c5884a40d7a416ea0db34a5f426002a
Author: Marcus Müller <address@hidden>
Date:   Wed Jun 18 15:40:40 2014 +0200

    check_lfsr_32k: fix < instead of <<; coverity 1046413
---
 gr-blocks/lib/check_lfsr_32k_s_impl.h | 4 ++--
 1 file 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 e060e89..2d0da21 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;
       }
 



reply via email to

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