diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2012-02-01 18:42:25 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2012-02-04 16:11:39 -0700 |
commit | 8a0e7cd26ea2803b8580dcca1d1306baa1d702dc (patch) | |
tree | 47af5fff3afe569556ea1824358296f87efdc327 /numpy/numarray/_capi.c | |
parent | c4b92ea0a2530c1dfe582d7f5635a0b793286166 (diff) | |
download | numpy-8a0e7cd26ea2803b8580dcca1d1306baa1d702dc.tar.gz |
UPDATE: Replace macros in old_defines.h by new.
With the exception of the numarray fixups these were all instances
that were results of code generation.
Diffstat (limited to 'numpy/numarray/_capi.c')
-rw-r--r-- | numpy/numarray/_capi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/numarray/_capi.c b/numpy/numarray/_capi.c index deb2cd478..7b866a8be 100644 --- a/numpy/numarray/_capi.c +++ b/numpy/numarray/_capi.c @@ -2828,7 +2828,7 @@ NA_NewAllFromBuffer(int ndim, maybelong *shape, NumarrayType type, if (byteorder != NA_ByteOrder()) { PyArray_Descr *temp; - temp = PyArray_DescrNewByteorder(dtype, PyArray_SWAP); + temp = PyArray_DescrNewByteorder(dtype, NPY_SWAP); Py_DECREF(dtype); if (temp == NULL) return NULL; dtype = temp; @@ -2856,7 +2856,7 @@ NA_NewAllFromBuffer(int ndim, maybelong *shape, NumarrayType type, newdims.len = ndim; newdims.ptr = shape; newself = (PyArrayObject *)\ - PyArray_Newshape(self, &newdims, PyArray_CORDER); + PyArray_Newshape(self, &newdims, NPY_CORDER); Py_DECREF(self); self = newself; } |