Skip to content

Commit 36af0cd

Browse files
committed
fix primitives conflicting with Python3
1 parent 13a981e commit 36af0cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python_orocos_kdl/PyKDL/std_string.sip

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
}
5050
if (PyUnicode_Check(sipPy)) {
5151
PyObject* s = PyUnicode_AsEncodedString(sipPy, "UTF-8", "");
52-
*sipCppPtr = new std::string(PyUnicode_AS_DATA(s));
52+
*sipCppPtr = new std::string(PyBytes_AS_STRING(PyUnicode_AS_DATA(s)));
5353
Py_DECREF(s);
5454
return 1;
5555
}
@@ -63,4 +63,3 @@
6363
return 0;
6464
%End
6565
};
66-

0 commit comments

Comments
 (0)