diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-10-16 21:55:13 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-10-16 21:56:08 +0200 |
commit | 0f99cf0476fed0a94656364454a69cfa86d0c890 (patch) | |
tree | 81b430d8f2ed71bc946bf0775cec3916bd59f297 | |
parent | 16236e27f93b3a1b3bf6a58750fdaec68b224420 (diff) | |
download | numpy-0f99cf0476fed0a94656364454a69cfa86d0c890.tar.gz |
BUG: fix declaration-after-statement
closes gh-3930
-rw-r--r-- | numpy/core/src/multiarray/lowlevel_strided_loops.c.src | 8 |
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)); |