diff options
author | Ian Lynagh <igloo@earth.li> | 2012-04-26 16:52:44 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2012-04-26 16:52:44 +0100 |
commit | 1dbe6d59b621ab9bd836241d633b3a8d99812cb3 (patch) | |
tree | 6482c2019a3a85f93c9b38c0e985d77f24388692 /rts/hooks/MallocFail.c | |
parent | 3e314cc2060734ade9b82d4da418c119b3a05b4c (diff) | |
download | haskell-1dbe6d59b621ab9bd836241d633b3a8d99812cb3.tar.gz |
Fix warnings on Win64
Mostly this meant getting pointer<->int conversions to use the right
sizes. lnat is now size_t, rather than unsigned long, as that seems a
better match for how it's used.
Diffstat (limited to 'rts/hooks/MallocFail.c')
-rw-r--r-- | rts/hooks/MallocFail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/hooks/MallocFail.c b/rts/hooks/MallocFail.c index 41c0d2a855..e298c2ee77 100644 --- a/rts/hooks/MallocFail.c +++ b/rts/hooks/MallocFail.c @@ -12,6 +12,6 @@ void MallocFailHook (lnat request_size /* in bytes */, char *msg) { - fprintf(stderr, "malloc: failed on request for %lu bytes; message: %s\n", request_size, msg); + fprintf(stderr, "malloc: failed on request for %" FMT_SizeT " bytes; message: %s\n", request_size, msg); } |