diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2019-12-13 09:41:03 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2019-12-13 09:41:03 +0000 |
commit | 9b76585b6ce3b6f263964695c9e9dc38366789d5 (patch) | |
tree | 412ed88a78daa390e1cb97775a7db4ce8f9b4133 | |
parent | - Add LICENSE (diff) |
Fix build with python 3.7
PR: 233770
Notes
Notes:
svn path=/head/; revision=520008
-rw-r--r-- | graphics/opencv/files/patch-modules_python_src2_cv2.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/opencv/files/patch-modules_python_src2_cv2.cpp b/graphics/opencv/files/patch-modules_python_src2_cv2.cpp new file mode 100644 index 000000000000..c2727519aaac --- /dev/null +++ b/graphics/opencv/files/patch-modules_python_src2_cv2.cpp @@ -0,0 +1,11 @@ +--- modules/python/src2/cv2.cpp.orig 2018-02-23 08:38:33 UTC ++++ modules/python/src2/cv2.cpp +@@ -886,7 +886,7 @@ bool pyopencv_to(PyObject* obj, String& value, const c + (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); |