Skip to content

Commit

Permalink
Don't overwrite definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi committed Aug 9, 2023
1 parent e8b3c7b commit 640c735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ sincos(a::Float16) = Float16.(sincos(Float32(a)))
for f in (:sin, :cos, :tan, :asin, :atan, :acos,
:sinh, :cosh, :tanh, :asinh, :acosh, :atanh,
:exp, :exp2, :exp10, :expm1, :log, :log2, :log10, :log1p,
:exponent, :sqrt, :cbrt, :sinpi, :cospi, :sincospi, :tanpi)
:exponent, :sqrt, :cbrt)
@eval function ($f)(x::Real)
xf = float(x)
x === xf && throw(MethodError($f, (x,)))
Expand Down

0 comments on commit 640c735

Please sign in to comment.