Browse Source

dtoolutil: fix tautological comparison compile warning

rdb 7 years ago
parent
commit
82e2c39172
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dtool/src/dtoolutil/textEncoder.I

+ 1 - 1
dtool/src/dtoolutil/textEncoder.I

@@ -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;
 }
 }