diff options
author | ilovezfs <ilovezfs@icloud.com> | 2018-07-03 06:31:39 +0000 |
---|---|---|
committer | ilovezfs <ilovezfs@icloud.com> | 2018-07-03 00:38:59 -0700 |
commit | 0c4328fbf3da0da57a91b2133578c5100370b867 (patch) | |
tree | df0648fbc87f360a7ed665f29048f6f01dd94c69 | |
parent | c52b4cf450e40bb0857112cdf34ef681a12aeb18 (diff) | |
download | opencv-0c4328fbf3da0da57a91b2133578c5100370b867.tar.gz opencv-0c4328fbf3da0da57a91b2133578c5100370b867.tar.bz2 opencv-0c4328fbf3da0da57a91b2133578c5100370b867.zip |
Python 3.7 compatability
The result of PyUnicode_AsUTF8() is now of type const char * rather of
char *.
-rw-r--r-- | modules/python/src2/cv2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/python/src2/cv2.cpp b/modules/python/src2/cv2.cpp index e16fcbacf2..5a6bf7ef62 100644 --- a/modules/python/src2/cv2.cpp +++ b/modules/python/src2/cv2.cpp @@ -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); |