Fix parse_signed returning an unsigned integer

This commit is contained in:
kayomn 2023-04-27 21:02:38 +00:00
parent a2990e67c7
commit 40f4c37dc8
1 changed files with 1 additions and 1 deletions

View File

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