spinhawk icon indicating copy to clipboard operation
spinhawk copied to clipboard

general2.c:2308: bad condition ?

Open dcb314 opened this issue 5 years ago • 0 comments

general2.c:2308:28: warning: logical 'and' of mutually exclusive tests is always false [-Wlogical-op]

Source code is

if(utf16[2] < 0xdc && utf16[2] > 0xdf)

maybe better code:

if(utf16[2] < 0xdc || utf16[2] > 0xdf)

dcb314 avatar Nov 27 '19 20:11 dcb314