1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Parse fixes

This commit is contained in:
Brian Fiete 2020-07-03 06:50:25 -07:00
parent 2bfc9d2d98
commit 14c3d0cd35
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -81,7 +81,7 @@ namespace System
}
else
{
var result = UInt64.Parse(val);
var result = UInt32.Parse(val);
return *(Result<uint, ParseError>*)&result;
}
}