1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-26 19:48:01 +02:00

Ignore overflow when hex parsing

This commit is contained in:
Brian Fiete 2024-02-27 11:01:34 -05:00
parent ccbed1ed01
commit 54136f2606

View file

@ -190,7 +190,7 @@ namespace System
else
return .Err(.InvalidChar(result));
if (isNeg ? (uint32)result > (uint32)MinValue : (uint32)result > (uint32)MaxValue)
if ((radix == 10) && (isNeg ? (uint32)result > (uint32)MinValue : (uint32)result > (uint32)MaxValue))
return .Err(.Overflow);
}