Browse Source

Fix bit op coercion for shifts in DUALNUM builds.

Reported by Junlong Li. Followup to #1273
Mike Pall 11 months ago
parent
commit
69bbf3c1b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib_bit.c

+ 1 - 1
src/lib_bit.c

@@ -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);
     x = lj_carith_shift64(x, sh, curr_func(L)->c.ffid - (int)FF_bit_lshift);
     return bit_result64(L, id, x);
     return bit_result64(L, id, x);
   }
   }
-  if (id2) setintV(L->base+1, sh);
+  setintV(L->base+1, sh);
   return FFH_RETRY;
   return FFH_RETRY;
 #else
 #else
   lj_lib_checknumber(L, 1);
   lj_lib_checknumber(L, 1);