Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Mar 31, 2023
1 parent 63c41cd commit c0e9a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/methods/replace_missing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function replace_missing(A::AbstractRaster{T}, missingval::MV;
MT = if ismissing(missingval)
promote_type(T, Missing)
else
nonmissingtype(T)
promote_type(nonmissingtype(T), MV)
end
old_missingval = Rasters.missingval(A)
missingval = convert(MT, missingval)
Expand Down

0 comments on commit c0e9a37

Please sign in to comment.