Skip to content

Commit

Permalink
Update promotion (#394)
Browse files Browse the repository at this point in the history
Solves the issue with `stepplot` in #378
  • Loading branch information
baggepinnen committed Nov 14, 2020
1 parent f6e1337 commit e9837ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timeresp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function lsim(sys::AbstractStateSpace, u::Function, t::AbstractVector;
elseif !(u0 isa Number && nu == 1) && (size(u0) != (nu,) && size(u0) != (nu,1))
error("return value of u must be of size nu")
end
T = promote_type(Float64, eltype(x0))
T = promote_type(Float64, eltype(x0), numeric_type(sys))

dt = T(t[2] - t[1])

Expand Down

0 comments on commit e9837ee

Please sign in to comment.