Skip to content

Commit

Permalink
simplify isinf call
Browse files Browse the repository at this point in the history
  • Loading branch information
benlorenz committed Aug 13, 2024
1 parent 971a089 commit 84981b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oscarnumber.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Base.:/(x::OscarNumber, y::OscarNumber) = x // y
convert(::Type{<:OscarNumber}, on::OscarNumber) = on

function unwrap(on::OscarNumber)
if Polymake.isinf(on) != 0
if isinf(on)
error("cannot unwrap OscarNumber containing infinity")
elseif _uses_rational(on)
return _get_rational(on)
Expand Down

0 comments on commit 84981b6

Please sign in to comment.