From deb3c87c32ff7bcd6ab72f13114a0ca76eff5eb9 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Mon, 19 Nov 2012 09:41:32 -0700 Subject: [PATCH] avoid a compiler warning --- src/racket/src/jitarith.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/racket/src/jitarith.c b/src/racket/src/jitarith.c index 9732eafba2..bae0118eac 100644 --- a/src/racket/src/jitarith.c +++ b/src/racket/src/jitarith.c @@ -1140,11 +1140,10 @@ int scheme_generate_arith(mz_jit_state *jitter, Scheme_Object *rator, Scheme_Obj int va; if (scheme_jit_is_fixnum(rand)) { - if (scheme_jit_is_fixnum(rand2)) { + if (scheme_jit_is_fixnum(rand2)) va = -1; /* no check needed */ - } else { + else va = JIT_R0; /* check only rand2 */ - } } else if (scheme_jit_is_fixnum(rand2)) { va = JIT_R1; /* check only rand */ } else { @@ -1152,7 +1151,8 @@ int scheme_generate_arith(mz_jit_state *jitter, Scheme_Object *rator, Scheme_Obj /* check both fixnum bits at once by ANDing into R2: */ jit_andr_ul(JIT_R2, JIT_R0, JIT_R1); va = JIT_R2; - } + } else + va = -1; } if (!unsafe_fx && !unsafe_fl) {