Skip to content

Commit 01de543

Browse files
committed
fix bug with short circuiting
1 parent 99d8717 commit 01de543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Polynomials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ end
423423

424424
# if we have both coefficients and initial condition that can take `NaN`
425425
function polyint{T<:Union{Real,Complex},S<:Union{Real,Complex}}(p::Poly{T}, k::S)
426-
hasnan(p) || isnan(k) && return Poly(promote_type(T,S)[NaN])
426+
(hasnan(p) || isnan(k)) && return Poly(promote_type(T,S)[NaN])
427427
_polyint(p, k)
428428
end
429429

0 commit comments

Comments
 (0)