From fb99c0bc5737c17fcb9bffd91f5801c33101d313 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Thu, 28 Dec 2017 13:31:20 -0600 Subject: [PATCH] avoid a C cmopiler warning --- racket/src/racket/src/jitcommon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/racket/src/racket/src/jitcommon.c b/racket/src/racket/src/jitcommon.c index aff91c7aff..3efe9fbaa8 100644 --- a/racket/src/racket/src/jitcommon.c +++ b/racket/src/racket/src/jitcommon.c @@ -2190,10 +2190,10 @@ static int common4b(mz_jit_state *jitter, void *_data) /* Search a vector for the property: */ (void)jit_ldxi_l(JIT_V1, JIT_R2, &SCHEME_VEC_SIZE(0x0)); /* get vector size */ jit_lshi_ul(JIT_V1, JIT_V1, JIT_LOG_WORD_SIZE); /* convert to bytes */ - jit_addi_l(JIT_V1, JIT_V1, (int)&SCHEME_VEC_ELS(0x0)); /* bytes at offset */ + jit_addi_l(JIT_V1, JIT_V1, (intptr_t)&SCHEME_VEC_ELS(0x0)); /* bytes at offset */ refloop = jit_get_ip(); - (void)jit_beqi_l(refslow, JIT_V1, (int)&SCHEME_VEC_ELS(0x0)); /* index at 0 => not found, so slow path */ + (void)jit_beqi_l(refslow, JIT_V1, (intptr_t)&SCHEME_VEC_ELS(0x0)); /* index at 0 => not found, so slow path */ jit_subi_l(JIT_V1, JIT_V1, (2 * JIT_WORD_SIZE)); /* step back by two words for key & value */ mz_set_local_p(JIT_V1, JIT_LOCAL3); /* save current index, because we need the register */