diff options
author | Erlang/OTP <[email protected]> | 2018-12-20 13:26:55 +0100 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2018-12-20 13:26:55 +0100 |
commit | 902f5bbc786b28f496d5e01f96ca2ef8426f66b3 (patch) | |
tree | a6c24a4b2f74a18aa49e8b72af2c9de29e8f1eaa /erts/emulator/beam | |
parent | 5d2a5f23ed1251e487eab53ee19f8cbb56f7e22d (diff) | |
parent | c8d3bff46adbff3205eaf76de8a634557cbd4af4 (diff) | |
download | otp-902f5bbc786b28f496d5e01f96ca2ef8426f66b3.tar.gz otp-902f5bbc786b28f496d5e01f96ca2ef8426f66b3.tar.bz2 otp-902f5bbc786b28f496d5e01f96ca2ef8426f66b3.zip |
Merge branch 'sverker/big-band-bug/ERL-804/OTP-15487' into maint-21
* sverker/big-band-bug/ERL-804/OTP-15487:
erts: Fix bug in 'band' of two negative numbers, one big
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/big.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/erts/emulator/beam/big.c b/erts/emulator/beam/big.c index 84338769e0..b373d3a577 100644 --- a/erts/emulator/beam/big.c +++ b/erts/emulator/beam/big.c @@ -1159,8 +1159,11 @@ static dsize_t I_band(ErtsDigit* x, dsize_t xl, short xsgn, *r++ = ~c1 & ~c2; x++; y++; } - while(xl--) - *r++ = ~*x++; + while(xl--) { + DSUBb(*x,0,b1,c1); + *r++ = ~c1; + x++; + } } } return I_btrail(r0, r, sign); |