Browse Source

eliminate silly warning

David Rose 23 years ago
parent
commit
86ec5c029c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      panda/src/express/textEncoder.I

+ 2 - 1
panda/src/express/textEncoder.I

@@ -334,7 +334,8 @@ unicode_isdigit(int character) {
     // The digits aren't actually listed in the map.
     // The digits aren't actually listed in the map.
     return (character >= '0' && character <= '9');
     return (character >= '0' && character <= '9');
   }
   }
-  return isdigit(entry->_ascii_equiv);
+  // This silly test (!= 0) is necessary to prevent a VC++ warning.
+  return (isdigit(entry->_ascii_equiv) != 0);
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////