mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
+ rfc: suggestion from static code analysis
This commit is contained in:
parent
246577cbb1
commit
800467d8ff
@ -316,12 +316,12 @@ Sci::Position OnigurumaRegExEngine::FindText(Document* doc, Sci::Position minPos
|
||||
//~m_MatchPos = SciPos(result); //
|
||||
m_MatchPos = SciPos(m_Region.beg[0]);
|
||||
//~m_MatchLen = SciPos(m_Region.end[0] - result);
|
||||
m_MatchLen = SciPos(m_Region.end[0] - m_Region.beg[0]);
|
||||
m_MatchLen = SciPos(m_Region.end[0]) - SciPos(m_Region.beg[0]);
|
||||
}
|
||||
|
||||
//NOTE: potential 64-bit-size issue at interface here:
|
||||
*length = m_MatchLen;
|
||||
return SciPos(m_MatchPos);
|
||||
return m_MatchPos;
|
||||
}
|
||||
// ============================================================================
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user