projects
/
profile
/
ivi
/
opencv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed many warnings from GCC 4.6.1
[profile/ivi/opencv.git]
/
modules
/
python
/
src2
/
cv2.cpp
diff --git
a/modules/python/src2/cv2.cpp
b/modules/python/src2/cv2.cpp
index
2fdc409
..
e928e36
100644
(file)
--- a/
modules/python/src2/cv2.cpp
+++ b/
modules/python/src2/cv2.cpp
@@
-345,7
+345,7
@@
static bool pyopencv_to(PyObject* obj, size_t& value, const char* name = "<unkno
if(!obj || obj == Py_None)
return true;
value = (int)PyLong_AsUnsignedLong(obj);
- return value != -1 || !PyErr_Occurred();
+ return value !=
(size_t)
-1 || !PyErr_Occurred();
}
static PyObject* pyopencv_from(int value)