summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorivmai <ivmai>2011-05-31 10:41:20 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:59 +0200
commit66289a86c874bd64660d9a5b49f2759c8096f429 (patch)
tree3570513138f47c8efb6a91363db8d0ac74f936ad /tests
parentbd668c36f5c724a88dc9150dbeac349ec6f7cca9 (diff)
2011-05-31 Ivan Maidanski <ivmai@mail.ru>
* tests/test.c (check_heap_stats): Adjust printf format specifier for max_heap_sz; cast max_heap_sz accordingly.
Diffstat (limited to 'tests')
-rw-r--r--tests/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test.c b/tests/test.c
index e7826c2..153d977 100644
--- a/tests/test.c
+++ b/tests/test.c
@@ -1345,9 +1345,9 @@ void check_heap_stats(void)
}
if (GC_get_heap_size() + GC_get_unmapped_bytes() > max_heap_sz) {
GC_printf("Unexpected heap growth - collector may be broken"
- " (heapsize: %lu, expected: %u)\n",
+ " (heapsize: %lu, expected: %lu)\n",
(unsigned long)(GC_get_heap_size() + GC_get_unmapped_bytes()),
- max_heap_sz);
+ (unsigned long)max_heap_sz);
FAIL;
}
# ifdef THREADS