mirror of
https://github.com/janet-lang/janet
synced 2025-10-24 20:27:41 +00:00
Fix number parsing.
This commit is contained in:
@@ -199,6 +199,7 @@ static struct JanetScanRes janet_scan_impl(
|
||||
res.foundexp = 1;
|
||||
break;
|
||||
} else if (!gotradix && (*str == 'x' || *str == 'X')) {
|
||||
if (!seenadigit) goto error;
|
||||
if (res.seenpoint || res.mant > 0) goto error;
|
||||
res.base = 16;
|
||||
res.mant = 0;
|
||||
|
||||
Reference in New Issue
Block a user