Fix parse_signed returning an unsigned integer
This commit is contained in:
parent
a2990e67c7
commit
40f4c37dc8
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue