Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
iamed2 committed Feb 21, 2019
1 parent 96d639a commit e46326f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/equals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
# of the other way round.
function ==(x::Decimal, y::Decimal)
# return early on zero
zerox = iszero(x)
zeroy = iszero(y)
if zerox || zeroy
return zerox == zeroy
x_is_zero = iszero(x)
y_is_zero = iszero(y)
if x_is_zero || y_is_zero
return x_is_zero === y_is_zero
end

a = normalize(x)
Expand Down

0 comments on commit e46326f

Please sign in to comment.