parent
1ab3af337f
commit
c8823019a6
@ -0,0 +1,13 @@
|
||||
diff --git a/modules/python/src2/cv2.cpp b/modules/python/src2/cv2.cpp
|
||||
index fab60fd03..2c48041dc 100644
|
||||
--- a/modules/python/src2/cv2.cpp
|
||||
+++ b/modules/python/src2/cv2.cpp
|
||||
@@ -886,7 +886,7 @@ bool pyopencv_to(PyObject* obj, String& value, const char* name)
|
||||
(void)name;
|
||||
if(!obj || obj == Py_None)
|
||||
return true;
|
||||
- char* str = PyString_AsString(obj);
|
||||
+ const char* str = PyString_AsString(obj);
|
||||
if(!str)
|
||||
return false;
|
||||
value = String(str);
|
Loading…
Reference in new issue