From 4475370e228e79efb9d22c948d6fcd32cf0571f9 Mon Sep 17 00:00:00 2001 From: Alexey Shvetsov Date: Tue, 3 Feb 2015 16:21:07 +0300 Subject: [PATCH] NPY_INT should be used instead of NPY_LONG Change-Id: I0b156160bd664a51a438f74635a262322b09b629 Signed-off-by: Alexey Shvetsov --- src/python/include/numpy_conv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/include/numpy_conv.h b/src/python/include/numpy_conv.h index 843d92e4db..b810832b05 100644 --- a/src/python/include/numpy_conv.h +++ b/src/python/include/numpy_conv.h @@ -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 -- 2.22.0