[qfcc] Handle floats starting with .

eg, .25

My test scene has such a value. Obviously, I'd never compiled it on this
branch since adding PGA physics.
This commit is contained in:
Bill Currie 2024-04-18 23:52:52 +09:00
parent 75e293789a
commit d1c4c59a57

View file

@ -789,7 +789,12 @@ parse_number (const rua_tok_t *tok, yyscan_t scanner)
}
}
if (*dst) {
dst += (*dst != '\'' && *dst != '_');
if (*dst == '.') {
dst++;
fp = true;
} else {
dst += (*dst != '\'' && *dst != '_');
}
while ((*dst = *src++)) {
if (hex && (*dst == 'p' || *dst == 'P')) {
fp = true;