From 23025f44c60a0e74d23784d61204647b52a4a57e Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 2 Mar 2018 18:00:17 +0000 Subject: [PATCH] Problem: unittest_mtrie fails on 32bit *nix Solution: correctly dereference pointer in test. --- unittests/unittest_mtrie.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittests/unittest_mtrie.cpp b/unittests/unittest_mtrie.cpp index 8302182c..3d484dc2 100644 --- a/unittests/unittest_mtrie.cpp +++ b/unittests/unittest_mtrie.cpp @@ -380,8 +380,8 @@ void check_count (zmq::generic_mtrie_t::prefix_t data_, size_t len_, int *count_) { - --count_; - TEST_ASSERT_GREATER_OR_EQUAL (0, count_); + --(*count_); + TEST_ASSERT_GREATER_OR_EQUAL (0, *count_); } void add_duplicate_entry (zmq::generic_mtrie_t &mtrie, int (&pipes)[2])