You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
480 B
14 lines
480 B
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);
|