Skip to content

Commit f60ae21

Browse files
author
unknown
committed
fix
1 parent 0e34a1f commit f60ae21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyCall.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ int callWrapperExec(const char *usrTag, pParamList params, pDataList reqData, pD
166166
PyDict_SetItemString(tmp, "key", pyKey);
167167

168168
//std::string datas(static_cast<char*>(p->data),p->len);
169-
PyObject *pyData = Py_BuildValue("O", p->data);
169+
//PyObject *pyData = Py_BuildValue("O", p->data);
170+
PyObject *pyData = PyBytes_FromStringAndSize((char *)(p->data), p->len);
170171
PyDict_SetItemString(tmp, "data", pyData);
171172

172173
PyObject *pyDataLen = Py_BuildValue("i", int(p->len));

0 commit comments

Comments
 (0)