From 05164aad4be059842224ed1adffc35fb2a0afb2a Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Sat, 23 Apr 2022 19:35:15 -0400 Subject: [PATCH] Use divTruncChecked over divFloorChecked in Deriv --- examples/benchmarks/Deriv.roc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/benchmarks/Deriv.roc b/examples/benchmarks/Deriv.roc index 90e641cb0f..46ae9c73f7 100644 --- a/examples/benchmarks/Deriv.roc +++ b/examples/benchmarks/Deriv.roc @@ -41,7 +41,7 @@ Expr : [ Val I64, Var Str, Add Expr Expr, Mul Expr Expr, Pow Expr Expr, Ln Expr divmod : I64, I64 -> Result { div : I64, mod : I64 } [ DivByZero ]* divmod = \l, r -> - when Pair (Num.divFloorChecked l r) (Num.remChecked l r) is + when Pair (Num.divTruncChecked l r) (Num.remChecked l r) is Pair div (Ok mod) -> Ok { div, mod }