Browse Source

*** empty log message ***

David Rose 25 years ago
parent
commit
fd4f9a170c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      dtool/src/cppparser/cppPreprocessor.cxx

+ 6 - 0
dtool/src/cppparser/cppPreprocessor.cxx

@@ -1730,7 +1730,13 @@ get_number(int c, int c2) {
       c = get();
       c = get();
     }
     }
 
 
+    while (c == 'L' || c == 'U') {
+      // We allow (and ignore) an 'L' and/or 'U' following the number.
+      c = get();
+    }
+
     _last_c = c;
     _last_c = c;
+
     YYSTYPE result;
     YYSTYPE result;
     result.u.integer = strtol(num.c_str(), (char **)NULL, 16);
     result.u.integer = strtol(num.c_str(), (char **)NULL, 16);
     return CPPToken(INTEGER, first_line, first_col, first_file, num, result);
     return CPPToken(INTEGER, first_line, first_col, first_file, num, result);