commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 02/02: blocks: Fix incorrect size check


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/02: blocks: Fix incorrect size check
Date: Sat, 3 Oct 2015 19:14:10 +0000 (UTC)

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

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit a42b7dca3c784a3ee2f307d7c1989a9184ee5717
Author: Paul Cercueil <address@hidden>
Date:   Mon Sep 28 18:52:36 2015 +0200

    blocks: Fix incorrect size check
    
    Signed-off-by: Paul Cercueil <address@hidden>
---
 gr-blocks/lib/multiply_matrix_cc_impl.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gr-blocks/lib/multiply_matrix_cc_impl.cc 
b/gr-blocks/lib/multiply_matrix_cc_impl.cc
index e9800c7..7ecf3e9 100644
--- a/gr-blocks/lib/multiply_matrix_cc_impl.cc
+++ b/gr-blocks/lib/multiply_matrix_cc_impl.cc
@@ -141,7 +141,7 @@ namespace gr {
           GR_LOG_ALERT(d_logger, "Invalid message to set A (wrong type).");
           return;
       }
-      if (!pmt::length(A) == d_A.size()) {
+      if (pmt::length(A) != d_A.size()) {
           GR_LOG_ALERT(d_logger, "Invalid message to set A (wrong size).");
           return;
       }



reply via email to

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