Closed Bug 1182370 Opened 5 years ago Closed 5 years ago
Scan Reverse does not modify `*p Index` if input is zero
MSVC code analysis complains about this. https://msdn.microsoft.com/en-us/library/fbxyd7zd.aspx _BitScanReverse doesn't modify `*pIndex` is the input is all zeros. We need to either test for this before-hand, or test the retval from _BitScanReverse, which is zero if input is zero. (non-zero otherwise)
Attachment #8631949 - Flags: review?(jwalden+bmo)
Attachment #8631949 - Flags: review?(jwalden+bmo) → review+
You need to log in before you can comment on or make changes to this bug.