mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix binary number literal parsing.
Reported by Egor Skriptunoff.
This commit is contained in:
parent
a50262c490
commit
377a8488b6
@ -443,6 +443,7 @@ StrScanFmt lj_strscan_scan(const uint8_t *p, MSize len, TValue *o,
|
||||
|
||||
/* Handle decimal point. */
|
||||
if (dp) {
|
||||
if (base == 2) return STRSCAN_ERROR;
|
||||
fmt = STRSCAN_NUM;
|
||||
if (dig) {
|
||||
ex = (int32_t)(dp-(p-1)); dp = p-1;
|
||||
|
Loading…
Reference in New Issue
Block a user