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])