Skip to content

Commit 8bc61fe

Browse files
committed
tweak float call
1 parent a9861b9 commit 8bc61fe

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
@@ -706,7 +706,7 @@ function polyfit(x, y, n::Int=length(x)-1, sym::Symbol=:x)
706706
# here unsure, whether similar(float(x[1]),...), or similar(x,...)
707707
# however similar may yield unwanted surprise in case of e.g. x::Int
708708
#
709-
A=similar(float(x[1:1]), length(x), n+1)
709+
A=similar(float.(x[1:1]), length(x), n+1)
710710
#
711711
# TODO: add support for poly coef bitmap
712712
# (i.e. polynomial with some terms fixed to zero)

0 commit comments

Comments
 (0)