diff --git a/BeefLibs/corlib/src/Int.bf b/BeefLibs/corlib/src/Int.bf index 07d373eb..04a9597d 100644 --- a/BeefLibs/corlib/src/Int.bf +++ b/BeefLibs/corlib/src/Int.bf @@ -81,7 +81,7 @@ namespace System public static Result Parse(StringView val) { - if (sizeof(int) == sizeof(int64)) + if (sizeof(Self) == sizeof(int64)) { var result = Int64.Parse(val); return *(Result*)&result; diff --git a/BeefLibs/corlib/src/UInt.bf b/BeefLibs/corlib/src/UInt.bf index 00441b03..fb77c6b4 100644 --- a/BeefLibs/corlib/src/UInt.bf +++ b/BeefLibs/corlib/src/UInt.bf @@ -81,7 +81,7 @@ namespace System } else { - var result = UInt64.Parse(val); + var result = UInt32.Parse(val); return *(Result*)&result; } }