Skip to content

Commit cf2a6b9

Browse files
stevengjnsajko
andcommitted
Update base/math.jl
Co-authored-by: Neven Sajko <s@purelymail.com>
1 parent 7a1d9a2 commit cf2a6b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/math.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ end
148148
function _evalpoly(z::Complex, p)
149149
Base.require_one_based_indexing(p)
150150
N = length(p)
151-
@inbounds p0 = N == 0 ? reduce_empty_iter(+, p) : p[N]
151+
p0 = iszero(N) ? reduce_empty_iter(+, p) : @inbounds p[N]
152152
N <= 1 && return oftype(one(z) * p0, p0)
153153
a = p0
154154
@inbounds b = p[N-1]

0 commit comments

Comments
 (0)