Skip to content

Commit fccadaa

Browse files
committed
Fix type instability
1 parent 46ab7a0 commit fccadaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/projective/affine.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function getprojection(scale::ScaleKeepAspect{N}, bounds; randstate = nothing) w
4848
upperleft = SVector{N, Float32}(minimum.(bounds.rs)) .- 0.5
4949
P = scaleprojection(Tuple(ratio for _ in 1:N))
5050
if upperleft != SVector(0, 0)
51-
P = P Translation((P(upperleft) .+ 0.5))
51+
P = P Translation((Float32.(P(upperleft)) .+ 0.5f0))
5252
end
5353
return P
5454
end

0 commit comments

Comments
 (0)