on master help sign in
Fixed format string in heap allocation error.
commit954d071de4861993b5b0a4dadcad588ab7c8b6e0 authorCalvin Beck <hobbes@ualberta.ca> dateSat 28 Feb 2015, 12:51 (12 years ago) parent78c76fe
1 file changed+2−2
rts/idris_heap.c+2−2
rts/idris_heap.c+2−2
@@ -10,8 +10,8 @@ void alloc_heap(Heap * h, size_t heap_size)
1010 char * mem = malloc(heap_size);
1111 if (mem == NULL) {
1212 fprintf(stderr,
13− "RTS ERROR: Unable to allocate heap. Requested %d bytes.\n",
14− (int)heap_size);
13+ "RTS ERROR: Unable to allocate heap. Requested %zd bytes.\n",
14+ heap_size);
1515 exit(EXIT_FAILURE);
1616 }
1717