Update raylib_parser.c

This commit is contained in:
Ray 2023-10-08 18:11:55 +02:00 committed by GitHub
parent be8eea9eda
commit 1327b570e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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