mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
builtin maxI128 initial
This commit is contained in:
parent
c2525d2407
commit
4d046abefa
11 changed files with 73 additions and 17 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue