Skip to content

Commit

Permalink
fix precompilation issue
Browse files Browse the repository at this point in the history
closes #171
  • Loading branch information
baggepinnen committed Feb 12, 2025
1 parent a19ea15 commit 3fe954a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MonteCarloMeasurements"
uuid = "0987c9cc-fe09-11e8-30f0-b96dd679fdca"
authors = ["baggepinnen <[email protected]>"]
version = "1.4.4"
version = "1.4.5"

[deps]
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
Expand Down
5 changes: 4 additions & 1 deletion src/particles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,12 @@ for PT in ParticleSymbols
res = muladd.(maybe_particles(x),maybe_particles(y),maybe_particles(z))
$PT{eltype(res),N}(res)
end
end
for XT in (:Number, :($PT{<:Number,N})), ZT in (:Number, :($PT{<:Number,N}))
XT == ZT == :Number && continue
@eval function Base.muladd(x::$XT,y::Complex,z::$ZT) where {N}
x*y+z
end
end
end

@eval Base.promote_rule(::Type{S}, ::Type{$PT{T,N}}) where {S<:Number,T,N} = $PT{promote_type(S,T),N} # This is hard to hit due to method for real 3 lines down
Expand Down

0 comments on commit 3fe954a

Please sign in to comment.