mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Parse fixes
This commit is contained in:
parent
2bfc9d2d98
commit
14c3d0cd35
2 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ namespace System
|
|||
|
||||
public static Result<int, ParseError> Parse(StringView val)
|
||||
{
|
||||
if (sizeof(int) == sizeof(int64))
|
||||
if (sizeof(Self) == sizeof(int64))
|
||||
{
|
||||
var result = Int64.Parse(val);
|
||||
return *(Result<int, ParseError>*)&result;
|
||||
|
|
|
@ -81,7 +81,7 @@ namespace System
|
|||
}
|
||||
else
|
||||
{
|
||||
var result = UInt64.Parse(val);
|
||||
var result = UInt32.Parse(val);
|
||||
return *(Result<uint, ParseError>*)&result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue