Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Add parentheses aroung logical operations (#8406)
Browse files Browse the repository at this point in the history
This commit fixes logical-op-parentheses compile error for x86/Linux build.
  • Loading branch information
parjong authored and jkotas committed Dec 1, 2016
1 parent 32e6bf8 commit 4e17522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/excep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<PTR_PCODE>(GetSP(pContext)));
Expand Down

0 comments on commit 4e17522

Please sign in to comment.