Skip to content

Commit

Permalink
fix tshift
Browse files Browse the repository at this point in the history
  • Loading branch information
jcosborn committed Dec 8, 2023
1 parent 27aa6a3 commit 93b76ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simd/simdArray.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93b76ea

Please sign in to comment.