Expression 'i < 0' is always false – stackoverflow.com

For the following snippet: size_t i = 0; std::wstring s; s = (i < 0) ? L"ABC" : L"DEF"; s = (i != -1) ? L"ABC" : L"DEF"; PVS-Studio analysis logs warning for the first condition i < 0, as ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Expression 'i < 0' is always false – stackoverflow.com"