diff --git a/Grid/lattice/Lattice_transfer.h b/Grid/lattice/Lattice_transfer.h index de6ca886..cf6e94c2 100644 --- a/Grid/lattice/Lattice_transfer.h +++ b/Grid/lattice/Lattice_transfer.h @@ -194,11 +194,11 @@ accelerator_inline void convertType(vComplexD2 & out, const ComplexD & in) { #endif accelerator_inline void convertType(vComplexF & out, const vComplexD2 & in) { - out.v = Optimization::PrecisionChange::DtoS(in._internal[0].v,in._internal[1].v); + precisionChange(out,in); } accelerator_inline void convertType(vComplexD2 & out, const vComplexF & in) { - Optimization::PrecisionChange::StoD(in.v,out._internal[0].v,out._internal[1].v); + precisionChange(out,in); } template