Commit 0de688cc authored by Alejandro Homs Puron's avatar Alejandro Homs Puron

Merge branch 'fix-numpy-import-array-warning' into 'master'

Fix conversion compiler warning when calling import_array macro.

See merge request !174
parents 979e3b3a 96389032
Pipeline #29721 passed with stages
in 39 minutes and 19 seconds
......@@ -60,7 +60,14 @@ extern "C"
#if PY_VERSION_HEX >= 0x03000000
int @PROJECT_NAME_LOWER@_import_array()
{
import_array();
//#define import_array1(ret) {
// if (_import_array() < 0) {
// PyErr_Print();
// PyErr_SetString(PyExc_ImportError, "numpy.core.multiarray failed to import");
// return ret;
// }
//}
import_array1(-1);
return 0;
}
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment