Avoid compiler warnings.

This commit is contained in:
Mike Pall
2010-12-22 23:20:50 +01:00
parent dbab6cf511
commit 4f2f44dd97
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ typedef enum {
/* Simplified escape analysis: check for intervening stores. */
static AliasRet aa_escape(jit_State *J, IRIns *ir, IRIns *stop)
{
IRRef ref = ir - J->cur.ir; /* The reference that might be stored. */
IRRef ref = (IRRef)(ir - J->cur.ir); /* The ref that might be stored. */
for (ir++; ir < stop; ir++)
if (ir->op2 == ref &&
(ir->o == IR_ASTORE || ir->o == IR_HSTORE ||