Skip to content

Commit

Permalink
Add parentheses aroung logical operations (dotnet/coreclr#8406)
Browse files Browse the repository at this point in the history
This commit fixes logical-op-parentheses compile error for x86/Linux build.

Commit migrated from dotnet/coreclr@4e17522
  • Loading branch information
parjong authored and jkotas committed Dec 1, 2016
1 parent cb3cebb commit e916d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/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 e916d67

Please sign in to comment.