diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-01-23 17:56:56 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-01-23 17:56:56 +0000 |
commit | 47306a9aa39ff18976f977c0dace3f23c30a9132 (patch) | |
tree | 31191a1cdc444aecc5309878486371ca66c43227 | |
parent | 4eeb659b1ec21647c448d50803cc51a7a351666b (diff) | |
download | numpy-47306a9aa39ff18976f977c0dace3f23c30a9132.tar.gz |
Switched order of NDARRAY_VERSION C-API check.
-rw-r--r-- | numpy/core/code_generators/generate_array_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/code_generators/generate_array_api.py b/numpy/core/code_generators/generate_array_api.py index 8c76d3539..8a043c65f 100644 --- a/numpy/core/code_generators/generate_array_api.py +++ b/numpy/core/code_generators/generate_array_api.py @@ -66,7 +66,7 @@ import_array(void) if (NDARRAY_VERSION != PyArray_GetNDArrayCVersion()) { PyErr_Format(PyExc_RuntimeError, "module compiled against "\ "version %%x of C-API but this version of numpy is %%x", \ - (int) PyArray_GetNDArrayCVersion(), (int) NDARRAY_VERSION); + (int) NDARRAY_VERSION, (int) PyArray_GetNDArrayCVersion()); return -1; } return 0; |