mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 11:10:21 +08:00
Python 3.7 compatability
The result of PyUnicode_AsUTF8() is now of type const char * rather of char *.
This commit is contained in:
parent
c52b4cf450
commit
0c4328fbf3
@ -916,7 +916,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
Block a user