]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix bit op coercion for shifts in DUALNUM builds.
authorMike Pall <mike>
Wed, 13 Nov 2024 08:18:32 +0000 (09:18 +0100)
committerMike Pall <mike>
Wed, 13 Nov 2024 08:18:32 +0000 (09:18 +0100)
Reported by Junlong Li. Followup to #1273

src/lib_bit.c

index ce40e2983b620d17777efa8bcfa9f15528d07903..ada9614d03ed80dd2cef9c08e648193608b334b9 100644 (file)
@@ -98,7 +98,7 @@ LJLIB_ASM(bit_lshift)         LJLIB_REC(bit_shift IR_BSHL)
     x = lj_carith_shift64(x, sh, curr_func(L)->c.ffid - (int)FF_bit_lshift);
     return bit_result64(L, id, x);
   }
-  if (id2) setintV(L->base+1, sh);
+  setintV(L->base+1, sh);
   return FFH_RETRY;
 #else
   lj_lib_checknumber(L, 1);