From 24131889e148c5c4aa326429d904743160c973be Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Fri, 14 Oct 2016 17:02:00 +0300 Subject: Clarify code with unobvious precedence (#1624) --- src/debug/di/rsthread.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3