diff --git a/modules/python/src2/cv2.cpp b/modules/python/src2/cv2.cpp index f02ba5a12..b49176100 100644 --- a/modules/python/src2/cv2.cpp +++ b/modules/python/src2/cv2.cpp @@ -219,7 +219,7 @@ static bool pyopencv_to(PyObject* o, Mat& m, const ArgInfo info) if( PyInt_Check(o) ) { - double v[] = {PyInt_AsLong((PyObject*)o), 0., 0., 0.}; + double v[] = {(double)PyInt_AsLong((PyObject*)o), 0., 0., 0.}; m = Mat(4, 1, CV_64F, v).clone(); return true; }