forked from koniifer/ableos
fixing integer parsing bug
This commit is contained in:
parent
0bf647174c
commit
6e58581cd1
|
@ -398,10 +398,10 @@ impl<'a, 'b> Parser<'a, 'b> {
|
||||||
};
|
};
|
||||||
E::Number {
|
E::Number {
|
||||||
pos: token.start,
|
pos: token.start,
|
||||||
value: match i64::from_str_radix(slice, radix as u32) {
|
value: match u64::from_str_radix(slice, radix as u32) {
|
||||||
Ok(value) => value,
|
Ok(value) => value,
|
||||||
Err(e) => self.report(format_args!("invalid number: {e}")),
|
Err(e) => self.report(format_args!("invalid number: {e}")),
|
||||||
},
|
} as i64,
|
||||||
radix,
|
radix,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue