projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7be494
)
Cast a long integer to double explicitly.
author
Mansour Moufid
<mansourmoufid@gmail.com>
Tue, 24 Feb 2015 22:04:28 +0000
(17:04 -0500)
committer
Mansour Moufid
<mansourmoufid@gmail.com>
Tue, 24 Feb 2015 22:04:28 +0000
(17:04 -0500)
modules/python/src2/cv2.cpp
patch
|
blob
|
history
diff --git
a/modules/python/src2/cv2.cpp
b/modules/python/src2/cv2.cpp
index
8a0aa09
..
9bf494f
100644
(file)
--- a/
modules/python/src2/cv2.cpp
+++ b/
modules/python/src2/cv2.cpp
@@
-233,7
+233,12
@@
static int pyopencv_to(const PyObject* o, Mat& m, const ArgInfo info, bool allow
if( PyInt_Check(o) )
{
- double v[] = {PyInt_AsLong((PyObject*)o), 0., 0., 0.};
+ double v[] = {
+ static_cast<double>(PyInt_AsLong((PyObject*)o)),
+ 0.,
+ 0.,
+ 0.,
+ };
m = Mat(4, 1, CV_64F, v).clone();
return true;
}