From 1db2302b7ec9118fc9333a1889a32b52bcad7afd Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Mon, 18 Sep 2023 11:48:15 -0400 Subject: [PATCH] use oneunit, not one, to preserve type --- src/partials.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/partials.jl b/src/partials.jl index a5316e3e..ddec4ebc 100644 --- a/src/partials.jl +++ b/src/partials.jl @@ -7,7 +7,7 @@ end ############################## @generated function single_seed(::Type{Partials{N,V}}, ::Val{i}) where {N,V,i} - ex = Expr(:tuple, [ifelse(i === j, :(one(V)), :(zero(V))) for j in 1:N]...) + ex = Expr(:tuple, [ifelse(i === j, :(oneunit(V)), :(zero(V))) for j in 1:N]...) return :(Partials($(ex))) end