diff --git a/src/vm/excep.cpp b/src/vm/excep.cpp index 68eafba65093..c161c477853c 100644 --- a/src/vm/excep.cpp +++ b/src/vm/excep.cpp @@ -7313,8 +7313,8 @@ AdjustContextForWriteBarrier( void* f_IP = (void *)GetIP(pContext); - if (f_IP >= (void *) JIT_WriteBarrierStart && f_IP <= (void *) JIT_WriteBarrierLast || - f_IP >= (void *) JIT_PatchedWriteBarrierStart && f_IP <= (void *) JIT_PatchedWriteBarrierLast) + if (((f_IP >= (void *) JIT_WriteBarrierStart) && (f_IP <= (void *) JIT_WriteBarrierLast)) || + ((f_IP >= (void *) JIT_PatchedWriteBarrierStart) && (f_IP <= (void *) JIT_PatchedWriteBarrierLast))) { // set the exception IP to be the instruction that called the write barrier void* callsite = (void *)GetAdjustedCallAddress(*dac_cast(GetSP(pContext)));