Quellcode durchsuchen

avoid noisy errors on win32

David Rose vor 21 Jahren
Ursprung
Commit
cd394f304d
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      pandatool/src/miscprogs/binToC.cxx

+ 3 - 1
pandatool/src/miscprogs/binToC.cxx

@@ -90,7 +90,9 @@ run() {
   string table_type = "const unsigned char ";
   string table_type = "const unsigned char ";
   string length_type = "const int ";
   string length_type = "const int ";
   if (_for_string) {
   if (_for_string) {
-    table_type = "const char ";
+    // Actually, declaring the table as "const char" causes VC7 to
+    // yell about truncating all of the values >= 0x80.
+    // table_type = "const char ";
     length_type = "const size_t ";
     length_type = "const size_t ";
   }
   }