diff options
author | Björn Gustavsson <[email protected]> | 2016-04-13 15:07:52 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-04-14 10:29:36 +0200 |
commit | 21041ee50217d90dc21dd484b9dd26c469e8cf87 (patch) | |
tree | 9c5860370214c29868b842519c70437af9c0dfe4 /erts/emulator | |
parent | 9d2dde09689246cd61a5e7bfdc8ca37884043a9c (diff) | |
download | otp-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.c | 2 |
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 */ |