From: Ivan Maidanski Date: Tue, 26 Mar 2019 20:09:49 +0000 (+0300) Subject: Fix printf format specifier in simple_example.md X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18ae085ce4c161c4931b1fef289c6e83081c77e1;p=gc Fix printf format specifier in simple_example.md * doc/simple_example.md (Writing the program): Adjust printf format specifier to match the argument type. --- diff --git a/doc/simple_example.md b/doc/simple_example.md index e19d5686..1fefc83b 100644 --- a/doc/simple_example.md +++ b/doc/simple_example.md @@ -99,7 +99,8 @@ The following program `loop.c` is a trivial example: assert(*p == 0); *p = (int *) GC_REALLOC(q, 2 * sizeof(int)); if (i % 100000 == 0) - printf("Heap size = %d\n", GC_get_heap_size()); + printf("Heap size = %lu bytes\n", + (unsigned long)GC_get_heap_size()); } return 0; }