Revert "Restore setnumV for fmt == STRSCAN_NUM in lj_strscan_scan"

This reverts commit 644cd36286.
This commit is contained in:
indev committed 2025-03-03 01:04:06 +03:00
1 parent 912e340028
commit 3ff8a920c0
1 file changed
+1 -4
+1 -4
View File
@@ -575,10 +575,7 @@ StrScanFmt lj_strscan_scan(const uint8_t *p, MSize len, TValue *o,
fmt = strscan_bin(sp, o, fmt, opt, ex, neg, dig);
else
#if LJ_INTONLY
if (fmt == STRSCAN_NUM)
setnumV(o, (lua_Number)(int32_t)(double)(neg ? ~x+1u : x));
else
setintV(o, (int32_t)(double)(neg ? ~x+1u : x));
setintV(o, (int32_t)(double)(neg ? (~x+1u) : x));
#else
fmt = strscan_dec(sp, o, fmt, opt, ex, neg, dig);
#endif