From fb43ecf99bcd1679719916f0ec2d3c51d36ef095 Mon Sep 17 00:00:00 2001 From: Justin Tirrell Date: Mon, 6 Sep 2021 21:14:56 -0400 Subject: [PATCH] Fix equality implementation for comparisons against non-decimals --- src/decimal/core.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decimal/core.cljs b/src/decimal/core.cljs index d262c05..c1b5e99 100644 --- a/src/decimal/core.cljs +++ b/src/decimal/core.cljs @@ -748,7 +748,7 @@ (extend-type *decimal* cljs.core/IEquiv (-equiv [v other] - (and (not= other nil) + (and (decimal? other) (.eq v other))) cljs.core/ICloneable