From b0beea01e8e41fe4a0633704d9038b58418ca093 Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Sun, 14 Jan 2018 18:42:53 +0300 Subject: [PATCH] Backport a compiler warning fix from LuaJIT HEAD. --- third_party/luajit/luajit/src/lj_asm_arm64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/luajit/luajit/src/lj_asm_arm64.h b/third_party/luajit/luajit/src/lj_asm_arm64.h index 328e4d7..66e926c 100644 --- a/third_party/luajit/luajit/src/lj_asm_arm64.h +++ b/third_party/luajit/luajit/src/lj_asm_arm64.h @@ -1082,7 +1082,7 @@ static void asm_ahustore(ASMState *as, IRIns *ir) src = ra_alloc1(as, ir->op2, allow); rset_clear(allow, src); if (irt_isinteger(ir->t)) - type = ra_allock(as, (int64_t)LJ_TISNUM << 47, allow); + type = ra_allock(as, (uint64_t)(int32_t)LJ_TISNUM << 47, allow); else type = ra_allock(as, irt_toitype(ir->t), allow); } else {