diff --git a/modules/python/src2/cv2.cpp b/modules/python/src2/cv2.cpp index 84cbb496f..82f1c8b9f 100644 --- a/modules/python/src2/cv2.cpp +++ b/modules/python/src2/cv2.cpp @@ -282,7 +282,7 @@ static bool pyopencv_to(PyObject* o, Mat& m, const ArgInfo info) if( type < 0 ) { - if( typenum == NPY_INT64 || typenum == NPY_UINT64 || type == NPY_LONG ) + if( typenum == NPY_INT64 || typenum == NPY_UINT64 || typenum == NPY_LONG ) { needcopy = needcast = true; new_typenum = NPY_INT;