builtin maxI128 initial

This commit is contained in:
Eric Henry 2021-03-09 12:47:42 -05:00
parent c2525d2407
commit 4d046abefa
11 changed files with 73 additions and 17 deletions

View file

@ -45,7 +45,7 @@ pub fn int_expr_from_result(
) -> Expr {
// Int stores a variable to generate better error messages
match result {
Ok(int) => Expr::Int(var_store.fresh(), var_store.fresh(), int),
Ok(int) => Expr::Int(var_store.fresh(), var_store.fresh(), int.into()),
Err((raw, error)) => {
let runtime_error = InvalidInt(error, base, region, raw.into());