summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-03-31 22:56:19 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-03-31 22:56:19 +0000
commitf80ab5e1c4c5b51a7d02a22e6b8cb6f86daa3563 (patch)
tree3e03bb4ecad2400b0854a7e78017a9fc04c42702 /numpy/core
parentdad871430574802f8d32cd515d19df77d0a006af (diff)
downloadnumpy-f80ab5e1c4c5b51a7d02a22e6b8cb6f86daa3563.tar.gz
Add new MACRO. Fix ticket #454 by changing pkgload to a function instead of an object.
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/include/numpy/ndarrayobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/include/numpy/ndarrayobject.h b/numpy/core/include/numpy/ndarrayobject.h
index b86f7bdd7..a9f66b487 100644
--- a/numpy/core/include/numpy/ndarrayobject.h
+++ b/numpy/core/include/numpy/ndarrayobject.h
@@ -1761,7 +1761,7 @@ typedef struct {
#define PyDataType_ISNOTSWAPPED(d) PyArray_ISNBO(((PyArray_Descr *)(d))->byteorder)
-
+#define PyDataType_ISBYTESWAPPED(d) (!PyDataType_ISNOTSWAPPED(d))
/* This is the form of the struct that's returned pointed by the