From 0c28fd828981853dd9728c1d58a8eee00e561c01 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 28 Jun 2012 10:30:49 -0600 Subject: [PATCH] fix C++11 errors in heapdump.cpp --- src/heapdump.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/heapdump.cpp b/src/heapdump.cpp index 2f70e80c5f..da283e61a1 100644 --- a/src/heapdump.cpp +++ b/src/heapdump.cpp @@ -34,7 +34,11 @@ write1(FILE* out, uint8_t v) void write4(FILE* out, uint32_t v) { - uint8_t b[] = { v >> 24, (v >> 16) & 0xFF, (v >> 8) & 0xFF, v & 0xFF }; + uint8_t b[] = { static_cast( v >> 24 ), + static_cast((v >> 16) & 0xFF), + static_cast((v >> 8) & 0xFF), + static_cast( v & 0xFF) }; + size_t n UNUSED = fwrite(b, 4, 1, out); }