Compare commits
3 Commits
a2990e67c7
...
e9f12785f9
Author | SHA1 | Date | |
---|---|---|---|
e9f12785f9 | |||
3efe246ed0 | |||
40f4c37dc8 |
@ -20,7 +20,7 @@ pub fn Unsigned(comptime bits: comptime_int) type {
|
||||
}});
|
||||
}
|
||||
|
||||
pub const Vector2 = struct {
|
||||
pub const Vector2 = extern 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.Unsigned(bits) {
|
||||
pub fn parse_signed(comptime bits: comptime_int, utf8: []const u8) IntParseError!math.Signed(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.Unsigned(bits) = 0;
|
||||
var result: math.Signed(bits) = 0;
|
||||
|
||||
{
|
||||
var index: usize = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user