Skip to content

Commit

Permalink
inline val complains
Browse files Browse the repository at this point in the history
  • Loading branch information
erikerlandson committed Dec 26, 2023
1 parent e607116 commit 2e8c562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala-3/spire/std/double.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ import java.lang.Math
trait DoubleIsField extends Field[Double] {
override inline def minus(a: Double, b: Double): Double = a - b
inline def negate(a: Double): Double = -a
inline val one: Double = 1.0
inline def one: Double = 1.0
inline def plus(a: Double, b: Double): Double = a + b
override inline def pow(a: Double, b: Int): Double = Math.pow(a, b)
override inline def times(a: Double, b: Double): Double = a * b
inline val zero: Double = 0.0
inline def zero: Double = 0.0

override inline def fromInt(n: Int): Double = n.toDouble

Expand Down

0 comments on commit 2e8c562

Please sign in to comment.