Skip to content

Commit

Permalink
Merge pull request #157 from chriselrod/patch-1
Browse files Browse the repository at this point in the history
`throw_overflowerr_negation` takes 1 argument
  • Loading branch information
brenhinkeller authored Apr 1, 2024
2 parents e672f35 + 4c073c4 commit c0b0ef8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/quirks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ end
# math.jl
@device_override @noinline Base.Math.throw_complex_domainerror(f::Symbol, x) =
@print_and_throw c"This operation requires a complex input to return a complex result"
@device_override @noinline Base.Math.throw_exp_domainerror(f::Symbol, x) =
@device_override @noinline Base.Math.throw_exp_domainerror(x) =
@print_and_throw c"Exponentiation yielding a complex result requires a complex argument"

# intfuncs.jl
Expand All @@ -25,7 +25,7 @@ end
# checked.jl
@device_override @noinline Base.Checked.throw_overflowerr_binaryop(op, x, y) =
@print_and_throw c"Binary operation overflowed"
@device_override @noinline Base.Checked.throw_overflowerr_negation(op, x, y) =
@device_override @noinline Base.Checked.throw_overflowerr_negation(x) =
@print_and_throw c"Negation overflowed"
@device_override function Base.Checked.checked_abs(x::Base.Checked.SignedInt)
r = ifelse(x < 0, -x, x)
Expand Down

0 comments on commit c0b0ef8

Please sign in to comment.