Compare commits
No commits in common. "e9f12785f96ce8391b230a5263d29e3afdd41f6b" and "a2990e67c7656bd9771e3052f9cdd4afa4a027ba" have entirely different histories.
e9f12785f9
...
a2990e67c7
@ -20,7 +20,7 @@ pub fn Unsigned(comptime bits: comptime_int) type {
|
||||
}});
|
||||
}
|
||||
|
||||
pub const Vector2 = extern struct {
|
||||
pub const Vector2 = struct {
|
||||
x: f32,
|
||||
y: f32,
|
||||
|
||||
|
@ -44,7 +44,7 @@ pub fn parse_float(comptime bits: comptime_int, utf8: []const u8) ParseError!mat
|
||||
return result * factor;
|
||||
}
|
||||
|
||||
pub fn parse_signed(comptime bits: comptime_int, utf8: []const u8) IntParseError!math.Signed(bits) {
|
||||
pub fn parse_signed(comptime bits: comptime_int, utf8: []const u8) IntParseError!math.Unsigned(bits) {
|
||||
// ""
|
||||
if (utf8.len == 0) return error.BadSyntax;
|
||||
|
||||
@ -53,7 +53,7 @@ pub fn parse_signed(comptime bits: comptime_int, utf8: []const u8) IntParseError
|
||||
// "-"
|
||||
if (is_negative and (utf8.len == 1)) return error.BadSyntax;
|
||||
|
||||
var result: math.Signed(bits) = 0;
|
||||
var result: math.Unsigned(bits) = 0;
|
||||
|
||||
{
|
||||
var index: usize = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user