mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Merge branch 'master' into v2.1
This commit is contained in:
commit
8e53ccc686
@ -378,7 +378,8 @@ void emit_lib(BuildCtx *ctx)
|
||||
char *p;
|
||||
/* Simplistic pre-processor. Only handles top-level #if/#endif. */
|
||||
if (buf[0] == '#' && buf[1] == 'i' && buf[2] == 'f') {
|
||||
int ok = 1, len = strlen(buf);
|
||||
int ok = 1;
|
||||
size_t len = strlen(buf);
|
||||
if (buf[len-1] == '\n') {
|
||||
buf[len-1] = 0;
|
||||
if (buf[len-2] == '\r') {
|
||||
|
@ -229,8 +229,8 @@ static TRef fwd_ahload(jit_State *J, IRRef xref)
|
||||
if (key->o == IR_KSLOT) key = IR(key->op1);
|
||||
lj_ir_kvalue(J->L, &keyv, key);
|
||||
tv = lj_tab_get(J->L, ir_ktab(IR(ir->op1)), &keyv);
|
||||
lj_assertJ(itype2irt(tv) == irt_type(fins->t),
|
||||
"mismatched type in constant table");
|
||||
if (itype2irt(tv) != irt_type(fins->t))
|
||||
return 0; /* Type instability in loop-carried dependency. */
|
||||
if (irt_isnum(fins->t))
|
||||
return lj_ir_knum_u64(J, tv->u64);
|
||||
else if (LJ_DUALNUM && irt_isint(fins->t))
|
||||
|
Loading…
Reference in New Issue
Block a user