Skip to content

Commit

Permalink
Fix early return in polyadd.
Browse files Browse the repository at this point in the history
  • Loading branch information
teoliphant committed Nov 22, 2006
1 parent 76ccf85 commit f11c32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/lib/polynomial.py
Expand Up @@ -348,7 +348,7 @@ def polyadd(a1, a2):
a2 = atleast_1d(a2)
diff = len(a2) - len(a1)
if diff == 0:
return a1 + a2
val = a1 + a2
elif diff > 0:
zr = NX.zeros(diff, a1.dtype)
val = NX.concatenate((zr, a1)) + a2
Expand Down

0 comments on commit f11c32a

Please sign in to comment.