diff options
author | Mike Pall <mike> | 2010-12-22 23:20:50 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-12-22 23:20:50 +0100 |
commit | 4f2f44dd97b56cd7ba07c3a9a08fcdd78913805e (patch) | |
tree | e7b5b5cdc8b26eb09ce48c4c333a39ba68a48814 | |
parent | dbab6cf511e232b5c2fdb11923c87473dcd84a7e (diff) | |
download | luajit-4f2f44dd97b56cd7ba07c3a9a08fcdd78913805e.tar.gz luajit-4f2f44dd97b56cd7ba07c3a9a08fcdd78913805e.tar.bz2 luajit-4f2f44dd97b56cd7ba07c3a9a08fcdd78913805e.zip |
Avoid compiler warnings.
-rw-r--r-- | src/lj_crecord.c | 2 | ||||
-rw-r--r-- | src/lj_opt_mem.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_crecord.c b/src/lj_crecord.c index 1df6c70c..9a317891 100644 --- a/src/lj_crecord.c +++ b/src/lj_crecord.c | |||
@@ -372,7 +372,7 @@ void LJ_FASTCALL recff_cdata_index(jit_State *J, RecordFFData *rd) | |||
372 | idx = emitir(IRT(IR_TOINT, IRT_INTP), idx, IRTOINT_ANY); | 372 | idx = emitir(IRT(IR_TOINT, IRT_INTP), idx, IRTOINT_ANY); |
373 | #endif | 373 | #endif |
374 | if (ctype_ispointer(ct->info)) { | 374 | if (ctype_ispointer(ct->info)) { |
375 | ptrdiff_t sz = (ptrdiff_t)lj_ctype_size(cts, (sid = ctype_cid(ct->info))); | 375 | CTSize sz = lj_ctype_size(cts, (sid = ctype_cid(ct->info))); |
376 | idx = crec_reassoc_ofs(J, idx, &ofs, sz); | 376 | idx = crec_reassoc_ofs(J, idx, &ofs, sz); |
377 | idx = emitir(IRT(IR_MUL, IRT_INTP), idx, lj_ir_kintp(J, sz)); | 377 | idx = emitir(IRT(IR_MUL, IRT_INTP), idx, lj_ir_kintp(J, sz)); |
378 | ptr = emitir(IRT(IR_ADD, IRT_PTR), idx, ptr); | 378 | ptr = emitir(IRT(IR_ADD, IRT_PTR), idx, ptr); |
diff --git a/src/lj_opt_mem.c b/src/lj_opt_mem.c index 3ed3c7ee..5aa5d8b9 100644 --- a/src/lj_opt_mem.c +++ b/src/lj_opt_mem.c | |||
@@ -40,7 +40,7 @@ typedef enum { | |||
40 | /* Simplified escape analysis: check for intervening stores. */ | 40 | /* Simplified escape analysis: check for intervening stores. */ |
41 | static AliasRet aa_escape(jit_State *J, IRIns *ir, IRIns *stop) | 41 | static AliasRet aa_escape(jit_State *J, IRIns *ir, IRIns *stop) |
42 | { | 42 | { |
43 | IRRef ref = ir - J->cur.ir; /* The reference that might be stored. */ | 43 | IRRef ref = (IRRef)(ir - J->cur.ir); /* The ref that might be stored. */ |
44 | for (ir++; ir < stop; ir++) | 44 | for (ir++; ir < stop; ir++) |
45 | if (ir->op2 == ref && | 45 | if (ir->op2 == ref && |
46 | (ir->o == IR_ASTORE || ir->o == IR_HSTORE || | 46 | (ir->o == IR_ASTORE || ir->o == IR_HSTORE || |