Skip to content

Commit

Permalink
BLD: fix MSVC compile errors.
Browse files Browse the repository at this point in the history
Fix fatal error C1083: Cannot open include file: 'xmmininrin.h'
Fix error C2036: 'void *' : unknown size

(forward port of scipy#4871, merged in 12690b0)
  • Loading branch information
cgohlke authored and rgommers committed May 17, 2015
1 parent 3bb02c0 commit c574d7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scipy/signal/lfilter.c.src
Expand Up @@ -355,7 +355,7 @@ zfill(const PyArrayObject * x, intp nx, char *xzfilled, intp nxzfilled)
if (nx > 0) {
for (i = 0; i < nx; ++i) {
copyswap(xzfilled + i * nxl,
PyArray_DATA((PyArrayObject *)x) + i * nxl,
(char *)PyArray_DATA((PyArrayObject *)x) + i * nxl,
0, NULL);
}
}
Expand Down
2 changes: 1 addition & 1 deletion scipy/signal/sigtoolsmodule.c
Expand Up @@ -947,7 +947,7 @@ PyObject *PyArray_OrderFilterND(PyObject *op1, PyObject *op2, int order) {
PyDataMem_FREE(zptr);
zptr = PyArray_Zero(ap1);
if (zptr == NULL) goto fail;
ap1_ptr = PyArray_DATA(ap1) + offset1*is1;
ap1_ptr = (char *)PyArray_DATA(ap1) + offset1*is1;
for (k=0; k < PyArray_NDIM(ap1); k++) {
a_ind[k] = mode_dep[k];
check_ind[k] = PyArray_DIMS(ap1)[k] - PyArray_DIMS(ap2)[k] - mode_dep[k] - 1;
Expand Down
2 changes: 1 addition & 1 deletion scipy/spatial/ckdtree/src/ckdtree_cpp_methods.h
Expand Up @@ -32,7 +32,7 @@ prefetch_datapoint(const npy_float64 *x, const npy_intp m)
}
#else
#if defined(_WIN32)
#include <xmmininrin.h>
#include <xmmintrin.h>
inline void
prefetch_datapoint(const npy_float64 *x, const npy_intp m)
{
Expand Down

0 comments on commit c574d7c

Please sign in to comment.