Skip to content

Commit

Permalink
Fix C++ warning
Browse files Browse the repository at this point in the history
  • Loading branch information
P-p-H-d committed Nov 24, 2024
1 parent 64a0355 commit f6d1b16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test-mshared-ptr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f6d1b16

Please sign in to comment.