Fix mismatched type in parse_signed
This commit is contained in:
parent
40f4c37dc8
commit
3efe246ed0
|
@ -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…
Reference in New Issue