masmangan / openalpr

Automatic License Plate Recognition library
http://www.openalpr.com
GNU Affero General Public License v3.0
0 stars 0 forks source link

utf8.cpp:19:13: warning: comparison of constant 237 ... #1

Open masmangan opened 6 years ago

masmangan commented 6 years ago

/Users/marco/openalpr/src/openalpr/support/utf8.cpp:19:13: warning: comparison of constant 237 with expression of type 'const std::1::basic_string<char, std::__1::char_traits, std::1::allocator >::value_type' (aka 'const char') is always false [-Wtautological-constant-out-of-range-compare] if (u[0]==0xed && (u[1] & 0xa0) == 0xa0) return -1; //code points, 0xd800 to 0xdfff


1
masmangan commented 6 years ago

https://stackoverflow.com/questions/42344476/clang-tautological-constant-out-of-range-compare-warning