commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 01/03: fixed an overflow issue in unpack_k_


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/03: fixed an overflow issue in unpack_k_bits::unpack
Date: Fri, 27 Jun 2014 13:30:50 +0000 (UTC)

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

trondeau pushed a commit to branch master
in repository gnuradio.

commit 15aa1c2f72d442e4f956246493f4547b980e39a7
Author: cottrema <address@hidden>
Date:   Fri Jun 27 21:46:47 2014 +1200

    fixed an overflow issue in unpack_k_bits::unpack
---
 gr-blocks/lib/unpack_k_bits.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gr-blocks/lib/unpack_k_bits.cc b/gr-blocks/lib/unpack_k_bits.cc
index 394c15b..967d7e1 100644
--- a/gr-blocks/lib/unpack_k_bits.cc
+++ b/gr-blocks/lib/unpack_k_bits.cc
@@ -50,7 +50,7 @@ namespace gr {
         int n = 0;
         for(int i = 0; i < nbytes; i++) {
           unsigned int t = bytes[i];
-          for(unsigned int j = d_k - 1; j >= 0; j--)
+          for(int j = d_k - 1; j >= 0; j--)
             bits[n++] = (t >> j) & 0x01;
         }
       }



reply via email to

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