summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/src/multiarray/lowlevel_strided_loops.c.src8
1 files changed, 6 insertions, 2 deletions
diff --git a/numpy/core/src/multiarray/lowlevel_strided_loops.c.src b/numpy/core/src/multiarray/lowlevel_strided_loops.c.src
index e9820a5e4..c22195c16 100644
--- a/numpy/core/src/multiarray/lowlevel_strided_loops.c.src
+++ b/numpy/core/src/multiarray/lowlevel_strided_loops.c.src
@@ -198,6 +198,11 @@ static void
npy_intp N, npy_intp NPY_UNUSED(src_itemsize),
NpyAuxData *NPY_UNUSED(data))
{
+# if @elsize@ != 16
+ @type@ temp;
+# else
+ npy_uint64 temp0, temp1;
+#endif
#if @is_aligned@ && @elsize@ != 16
/* sanity check */
assert(npy_is_aligned(dst, _ALIGN(@type@)));
@@ -208,9 +213,8 @@ static void
#else
# if @elsize@ != 16
- @type@ temp = @swap@@elsize@(*((@type@ *)src));
+ temp = @swap@@elsize@(*((@type@ *)src));
# else
- npy_uint64 temp0, temp1;
# if @is_swap@ == 0
temp0 = (*((npy_uint64 *)src));
temp1 = (*((npy_uint64 *)src + 1));