aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.rs
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2024-05-30 10:45:11 -0700
committerRose Hogenson <rosehogenson@posteo.net>2024-05-30 10:45:11 -0700
commit12febf6f88e62fd70cca1b7a87212dc8c0edb027 (patch)
treeb3d74e7b8dc52e663d056762203d57db48dc838c /src/parser.rs
parentFix exponentiation. (diff)
downloadqc-12febf6f88e62fd70cca1b7a87212dc8c0edb027.tar.zst
Use i128.
Why not?
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.rs b/src/parser.rs
index 0875d92..5e02037 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -53,7 +53,7 @@ impl<'a> Parser<'a> {
};
return Some(eval::float(f));
}
- let Ok(i) = i64::from_str(t) else {
+ let Ok(i) = i128::from_str(t) else {
return None;
};
Some(eval::int(i))