Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- U_CFUNC int32_t U_CALLCONV
- ucol_calcSortKey(....)
- {
- ....
- if((caseBits & 0xC0) == 0) {
- *(cases-1) |= 1 << (--caseShift);
- } else {
- *(cases-1) |= 0 << (--caseShift);
- ....
- }
- This suspicious code was found in V8 project by PVS-Studio static code analyzer.
- Warning message is:
- V684 A value of the variable '* (cases - 1)' is not modified. Consider inspecting the expression. It is possible that '1' should be present instead of '0'. ucol.cpp 4941
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment