Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanMaertens committed Sep 26, 2023
1 parent 472e496 commit f71d9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operators/multipliedoperator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function Base.:*(op::UntimedOperator, b::Number)
return UntimedOperator(op.op, b * op.f)
end
function Base.:*(op::TimedOperator, b::Number)
return UntimedOperator(op.op, t -> b * op.f(t))
return TimedOperator(op.op, t -> b * op.f(t))
end
Base.:*(b::Number, op::MultipliedOperator) = op * b

Expand Down

0 comments on commit f71d9fd

Please sign in to comment.