diff options
author | Dmitry-Me <Dmitry-Me@users.noreply.github.com> | 2016-10-14 17:02:00 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-10-14 07:02:00 -0700 |
commit | 24131889e148c5c4aa326429d904743160c973be (patch) | |
tree | e0e55a2ef4b30ce3e398c7ab3da2e0552605cf7e /src | |
parent | 8ae6134fcec8fb50ccd0de07c2d167024fca570d (diff) | |
download | coreclr-24131889e148c5c4aa326429d904743160c973be.tar.gz coreclr-24131889e148c5c4aa326429d904743160c973be.tar.bz2 coreclr-24131889e148c5c4aa326429d904743160c973be.zip |
Clarify code with unobvious precedence (#1624)
Diffstat (limited to 'src')
-rw-r--r-- | src/debug/di/rsthread.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/debug/di/rsthread.cpp b/src/debug/di/rsthread.cpp index ae9b43cd01..c2a8d1bd06 100644 --- a/src/debug/di/rsthread.cpp +++ b/src/debug/di/rsthread.cpp @@ -8935,8 +8935,13 @@ HRESULT CordbJITILFrame::GetReturnValueForILOffsetImpl(ULONG32 ILoffset, ICorDeb bool found = false; ULONG32 currentOffset = m_nativeFrame->GetIPOffset(); for (ULONG32 i = 0; i < count; ++i) - if ((found = currentOffset == offsets[i])) + { + if (currentOffset == offsets[i]) + { + found = true; break; + } + } if (!found) return E_UNEXPECTED; |