diff options
author | Lukas Larsson <[email protected]> | 2017-10-18 16:01:03 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2017-10-30 19:40:34 +0100 |
commit | 1b00539d6db8e349c6782bcd38ab006420734106 (patch) | |
tree | 847bc2b962ad07f7ebcc8fac6d9d062fa5b7c1db /erts/emulator/beam/beam_debug.c | |
parent | 56587b4c81c337d198a414334c3f6429f12cbf64 (diff) | |
download | otp-1b00539d6db8e349c6782bcd38ab006420734106.tar.gz otp-1b00539d6db8e349c6782bcd38ab006420734106.tar.bz2 otp-1b00539d6db8e349c6782bcd38ab006420734106.zip |
erts: Fix a bunch of compiler warnings
Diffstat (limited to 'erts/emulator/beam/beam_debug.c')
-rw-r--r-- | erts/emulator/beam/beam_debug.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_debug.c b/erts/emulator/beam/beam_debug.c index 70078c8c59..509aa2a84f 100644 --- a/erts/emulator/beam/beam_debug.c +++ b/erts/emulator/beam/beam_debug.c @@ -408,7 +408,10 @@ print_op(fmtfn_t to, void *to_arg, int op, int size, BeamInstr* addr) addr++; ap = addr; } else { - BeamInstr instr_word = addr++[0]; +#if defined(ARCH_64) && defined(CODE_MODEL_SMALL) + BeamInstr instr_word = addr[0]; +#endif + addr++; /* * Copy all arguments to a local buffer for the unpacking. |