summaryrefslogtreecommitdiff
path: root/tests/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test.c')
-rw-r--r--tests/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test.c b/tests/test.c
index 7f3f1fbe..100e0606 100644
--- a/tests/test.c
+++ b/tests/test.c
@@ -1373,7 +1373,7 @@ void run_one_test(void)
CHECK_OUT_OF_MEMORY(x);
if (GC_size(x) != MIN_WORDS * sizeof(GC_word)) {
GC_printf("GC_malloc(0) failed: GC_size returns %lu\n",
- (unsigned long)GC_size(GC_malloc(0)));
+ (unsigned long)GC_size(x));
FAIL;
}
AO_fetch_and_add1(&uncollectable_count);