Skip to content

Commit

Permalink
Merge pull request #10017 from Varanas/master
Browse files Browse the repository at this point in the history
workaround for strange llvm-branching
  • Loading branch information
JeffBezanson committed Feb 2, 2015
2 parents 56e69e2 + b92e8ff commit fcf924f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/floatfuncs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function signif(x::Real, digits::Integer, base::Integer=10)
digits < 1 && throw(DomainError())

x = float(x)
x == 0 && return x
(x == 0 || !isfinite(x)) && return x
og, e = _signif_og(x, digits, base)
if e >= 0 # for numeric stability
r = round(x/og)*og
Expand Down

0 comments on commit fcf924f

Please sign in to comment.