aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-04-13 15:07:52 +0200
committerBjörn Gustavsson <[email protected]>2016-04-14 10:29:36 +0200
commit21041ee50217d90dc21dd484b9dd26c469e8cf87 (patch)
tree9c5860370214c29868b842519c70437af9c0dfe4 /erts/emulator
parent9d2dde09689246cd61a5e7bfdc8ca37884043a9c (diff)
downloadotp-21041ee50217d90dc21dd484b9dd26c469e8cf87.tar.gz
otp-21041ee50217d90dc21dd484b9dd26c469e8cf87.tar.bz2
otp-21041ee50217d90dc21dd484b9dd26c469e8cf87.zip
beam_debug: Correct masking when unpacking packed operands
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/beam_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_debug.c b/erts/emulator/beam/beam_debug.c
index e37bd4d78c..7fddf15dab 100644
--- a/erts/emulator/beam/beam_debug.c
+++ b/erts/emulator/beam/beam_debug.c
@@ -431,7 +431,7 @@ print_op(int to, void *to_arg, int op, int size, BeamInstr* addr)
packed >>= 10;
break;
case '0': /* Tight shift */
- *ap++ = packed & (BEAM_TIGHT_MASK / sizeof(Eterm));
+ *ap++ = packed & BEAM_TIGHT_MASK;
packed >>= BEAM_TIGHT_SHIFT;
break;
case '6': /* Shift 16 steps */