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

Commit

Permalink
Fix build breaks caused by assignment inside a conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
noahfalk committed Jul 21, 2017
1 parent 60bcc92 commit e7862b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/prestub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ PCODE MethodDesc::JitCompileCode(PrepareCodeConfig* pConfig)
JitListLock::LockHolder pJitLock(GetDomain()->GetJitLock());

// It is possible that another thread stepped in before we entered the global lock for the first time.
if (pCode = pConfig->IsJitCancellationRequested())
if ((pCode = pConfig->IsJitCancellationRequested()))
{
return pCode;
}
Expand Down Expand Up @@ -642,7 +642,7 @@ PCODE MethodDesc::JitCompileCode(PrepareCodeConfig* pConfig)
}

// It is possible that another thread stepped in before we entered the lock.
if (pCode = pConfig->IsJitCancellationRequested())
if ((pCode = pConfig->IsJitCancellationRequested()))
{
return pCode;
}
Expand Down

0 comments on commit e7862b6

Please sign in to comment.