aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2018-12-20 13:26:55 +0100
committerErlang/OTP <[email protected]>2018-12-20 13:26:55 +0100
commit902f5bbc786b28f496d5e01f96ca2ef8426f66b3 (patch)
treea6c24a4b2f74a18aa49e8b72af2c9de29e8f1eaa /erts/emulator/beam
parent5d2a5f23ed1251e487eab53ee19f8cbb56f7e22d (diff)
parentc8d3bff46adbff3205eaf76de8a634557cbd4af4 (diff)
downloadotp-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.c7
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);