From f6d1b1633865e1060c56d7d2db6b99332da3806c Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Mon, 25 Nov 2024 00:04:54 +0100 Subject: [PATCH] Fix C++ warning --- tests/test-mshared-ptr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-mshared-ptr.c b/tests/test-mshared-ptr.c index cbdd2dec..c5943be5 100644 --- a/tests/test-mshared-ptr.c +++ b/tests/test-mshared-ptr.c @@ -511,9 +511,9 @@ static void test_thread1_string(void) static void conso_thread2_string(void *p) { shared_string_t *ptr = (shared_string_t*) p; - size_t size = shared_string_size(p); + size_t size = shared_string_size(ptr); for(int i = 0; i < 1000; i++) { - size_t n = shared_string_size(p); + size_t n = shared_string_size(ptr); assert( n >= size); size = n; }