Skip to content

Commit c0b0ef8

Browse files
Merge pull request #157 from chriselrod/patch-1
`throw_overflowerr_negation` takes 1 argument
2 parents e672f35 + 4c073c4 commit c0b0ef8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/quirks.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ end
99
# math.jl
1010
@device_override @noinline Base.Math.throw_complex_domainerror(f::Symbol, x) =
1111
@print_and_throw c"This operation requires a complex input to return a complex result"
12-
@device_override @noinline Base.Math.throw_exp_domainerror(f::Symbol, x) =
12+
@device_override @noinline Base.Math.throw_exp_domainerror(x) =
1313
@print_and_throw c"Exponentiation yielding a complex result requires a complex argument"
1414

1515
# intfuncs.jl
@@ -25,7 +25,7 @@ end
2525
# checked.jl
2626
@device_override @noinline Base.Checked.throw_overflowerr_binaryop(op, x, y) =
2727
@print_and_throw c"Binary operation overflowed"
28-
@device_override @noinline Base.Checked.throw_overflowerr_negation(op, x, y) =
28+
@device_override @noinline Base.Checked.throw_overflowerr_negation(x) =
2929
@print_and_throw c"Negation overflowed"
3030
@device_override function Base.Checked.checked_abs(x::Base.Checked.SignedInt)
3131
r = ifelse(x < 0, -x, x)

0 commit comments

Comments
 (0)