From 7e577f837a65bc1dbd9d7cbe0b49f5316d650f76 Mon Sep 17 00:00:00 2001 From: tiemvanderdeure Date: Sat, 13 Sep 2025 11:07:14 +0200 Subject: [PATCH] use fill! instead of .= for type stability --- src/methods/aggregate.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/methods/aggregate.jl b/src/methods/aggregate.jl index fca353d2e..9b717f1da 100644 --- a/src/methods/aggregate.jl +++ b/src/methods/aggregate.jl @@ -303,7 +303,7 @@ function disaggregate!(dst::AbstractRaster, src, scale) ranges = map(:, lower, upper) val = src2[I] val1 = _ismissing(src, val) ? missingval(dst) : val - dst[ranges...] .= (val1,) + fill!(view(dst, ranges...), val1) end end return dst