From 93b76ea3b6bcacdfc67df1ae94228a93f98f7754 Mon Sep 17 00:00:00 2001 From: James Osborn Date: Fri, 8 Dec 2023 14:06:38 -0600 Subject: [PATCH] fix tshift --- src/simd/simdArray.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simd/simdArray.nim b/src/simd/simdArray.nim index dd0bbf0..6b60b45 100644 --- a/src/simd/simdArray.nim +++ b/src/simd/simdArray.nim @@ -47,7 +47,7 @@ template toSingleImpl*[N:static int,T](x: SimdArrayObj[N,T]): auto = template toDoubleImpl*[N:static int,T](x: SimdArrayObj[N,T]): auto = when numberType(T) is float64: x else: - type D = simdObjType(N, toDouble(T)) + type D = simdObjType(N, toDouble(type(T))) var r {.noInit.}: D assign(r, x[]) r