Skip to content

Commit

Permalink
removed TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
drkameleon committed Jun 13, 2023
1 parent 54ea50e commit 6c669f9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/vm/values/operators.nim
Original file line number Diff line number Diff line change
Expand Up @@ -830,9 +830,6 @@ proc neg*(x: Value): Value =
if x.iKind==NormalInteger: return normalIntegerNeg(x.i)
else: (when GMP: return newInteger(neg(x.bi)))
of Floating: return newFloating(x.f*(-1.0))
# TODO(VRational) add `neg` overload
# it can be faster for BigRational values
# labels: 3rd-party, enhancement, values
of Rational: return newRational(neg(x.rat))
of Complex: return newComplex(x.z*(-1.0))
of Quantity: return newQuantity(x.q*(-1))
Expand Down

0 comments on commit 6c669f9

Please sign in to comment.