Debian Codegraph @

debian/patches/fix-bitwise-not-on-32bits-arch.patch

raw
1 --- a/core/vm.cpp
2 +++ b/core/vm.cpp
3 @@ -3261,7 +3261,8 @@
4 case UOP_MINUS: scratch = makeNumber(-scratch.v.d); break;
5
6 case UOP_BITWISE_NOT:
7 - scratch = makeNumber(~(long)(scratch.v.d));
8 + { int64_t value = safeDoubleToInt64(scratch.v.d, ast.location);
9 + scratch = makeNumber(~value); }
10 break;
11
12 default: