Merge pull request #3226 from whoshuu:patch-1

This commit is contained in:
Vadim Pisarevsky 2014-09-17 09:52:01 +00:00
commit 550bd24ca8

View File

@ -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;
}