mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-27 12:08:00 +02:00
Ignore overflow when hex parsing
This commit is contained in:
parent
ccbed1ed01
commit
54136f2606
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ namespace System
|
||||||
else
|
else
|
||||||
return .Err(.InvalidChar(result));
|
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);
|
return .Err(.Overflow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue