aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/libshiboken/sbkarrayconverter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/libshiboken/sbkarrayconverter.cpp')
-rw-r--r--sources/shiboken2/libshiboken/sbkarrayconverter.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/shiboken2/libshiboken/sbkarrayconverter.cpp b/sources/shiboken2/libshiboken/sbkarrayconverter.cpp
index 39b4ebbf5..c22015709 100644
--- a/sources/shiboken2/libshiboken/sbkarrayconverter.cpp
+++ b/sources/shiboken2/libshiboken/sbkarrayconverter.cpp
@@ -242,6 +242,10 @@ static PythonToCppFunc sequenceToCppDoubleArrayCheck(PyObject *pyIn, int dim1, i
return floatArrayCheck(pyIn, dim1) ? sequenceToCppDoubleArray : nullptr;
}
+#ifdef HAVE_NUMPY
+void initNumPyArrayConverters();
+#endif
+
void initArrayConverters()
{
SbkArrayConverter **start = &ArrayTypeConverters[0][0];
@@ -263,6 +267,10 @@ void initArrayConverters()
createArrayConverter(sequenceToCppLongLongArrayCheck);
ArrayTypeConverters[SBK_UNSIGNEDLONGLONG_ARRAY_IDX][0] =
createArrayConverter(sequenceToCppUnsignedLongLongArrayCheck);
+
+#ifdef HAVE_NUMPY
+ initNumPyArrayConverters();
+#endif
}
SbkArrayConverter *arrayTypeConverter(int index, int dimension)