#223 cppcheck reports "Logical conjunction always true"

other
open
nobody
None
5
2013-06-08
2013-06-08
serval24
No

Hello,

With CLucene git updated today + cppcheck git updated today, I had this report:
[src/contribs-lib/CLucene/analysis/cjk/CJKAnalyzer.cpp:69]: (warning) Logical disjunction always evaluates to true: c >= 55296 || c <= 57343.
Indeed:
69 if ( c >= 0xd800 || c <= 0xdfff ){

I couldn't launch cppcheck on the whole project because of a segfault during scanning, see https://sourceforge.net/apps/trac/cppcheck/ticket/4841

Julien

Discussion