Merge pull request #13225 from s-hadinger/berry_flip

Berry fix flip
This commit is contained in:
s-hadinger 2021-09-27 12:50:54 +02:00 committed by GitHub
commit d165072581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -743,7 +743,7 @@ newframe: /* a new call frame */
opcase(FLIP): {
bvalue *dst = RA(), *a = RKB();
if (var_isint(a)) {
var_setint(dst, -a->v.i);
var_setint(dst, ~a->v.i);
} else if (var_isinstance(a)) {
ins_unop(vm, "~", *RKB());
reg = vm->reg;