From 5d6899a8674cb86d297db518189823a120a97e45 Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Thu, 24 May 2012 08:34:46 -0600 Subject: [PATCH] fix warning in disassembler code Apple's GCC is more picky about undefined ordering (and rightfully so)... --- src/machine.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/machine.cpp b/src/machine.cpp index fd4fed94c4..4c99de36de 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -1649,7 +1649,10 @@ disassembleCode(const char* prefix, uint8_t* code, unsigned length) case monitorenter: fprintf(stderr, "monitorenter\n"); break; case monitorexit: fprintf(stderr, "monitorexit\n"); break; - case multianewarray: fprintf(stderr, "multianewarray %04x %02x\n", read16(code, ip), code[ip++]); break; + case multianewarray: { + unsigned type = read16(code, ip); + fprintf(stderr, "multianewarray %04x %02x\n", type, code[ip++]); + } break; case new_: fprintf(stderr, "new %04x\n", read16(code, ip)); break;