Ver código fonte

Update raylib_parser.c

Ray 1 ano atrás
pai
commit
1327b570e3
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      parser/raylib_parser.c

+ 2 - 2
parser/raylib_parser.c

@@ -534,8 +534,8 @@ int main(int argc, char* argv[])
                     {
                         // Found a valid number -> update largestType
                         int numberType;
-                        if (isFloat) numberType = valuePtr[c - 1] == 'f' ? FLOAT_MATH : DOUBLE_MATH;
-                        else numberType = valuePtr[c - 1] == 'L' ? LONG_MATH : INT_MATH;
+                        if (isFloat) numberType = (valuePtr[c - 1] == 'f')? FLOAT_MATH : DOUBLE_MATH;
+                        else numberType = (valuePtr[c - 1] == 'L')? LONG_MATH : INT_MATH;
 
                         if (numberType > largestType) largestType = numberType;
                     }