NPY_INT should be used instead of NPY_LONG
authorAlexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
Tue, 3 Feb 2015 13:21:07 +0000 (16:21 +0300)
committerAlexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
Tue, 3 Feb 2015 13:21:07 +0000 (16:21 +0300)
Change-Id: I0b156160bd664a51a438f74635a262322b09b629
Signed-off-by: Alexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
src/python/include/numpy_conv.h

index 843d92e4db8fac788d71e09ae912a1260cb6a94f..b810832b051c99676de5f0c7308b31b538db651f 100644 (file)
@@ -59,6 +59,6 @@ PyObject* array1dToNumpy(int dim, const void *data) {
 
 PyObject* iarray1dToNumpy(int dim, const int *data) {
     npy_intp n_dim = dim;
-    return PyArray_SimpleNewFromData(1, &n_dim, NPY_LONG, (int*) data);
+    return PyArray_SimpleNewFromData(1, &n_dim, NPY_INT, (int*) data);
 }
 #endif