mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
dtoolutil: fix tautological comparison compile warning
This commit is contained in:
parent
b569875bf9
commit
82e2c39172
@ -316,7 +316,7 @@ unicode_ispunct(char32_t character) {
|
|||||||
const UnicodeLatinMap::Entry *entry = UnicodeLatinMap::look_up(character);
|
const UnicodeLatinMap::Entry *entry = UnicodeLatinMap::look_up(character);
|
||||||
if (entry == nullptr) {
|
if (entry == nullptr) {
|
||||||
// Some punctuation marks aren't listed in the map.
|
// Some punctuation marks aren't listed in the map.
|
||||||
return (character >= 0 && character < 128 && ispunct(character));
|
return (character < 128 && ispunct(character));
|
||||||
}
|
}
|
||||||
return entry->_char_type == UnicodeLatinMap::CT_punct;
|
return entry->_char_type == UnicodeLatinMap::CT_punct;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user