Skip to content

Commit 06a043c

Browse files
committed
kbe/src/lib/client_lib/clientapp.cpp:499 PyErr_Format(PyExc_AssertionError, "ClientApp::fireEvent(%s): arg2 not is str!\n", eventdata.name); 需要添加eventdata.name.c_str(),否则编译错误。
1 parent 3a871c8 commit 06a043c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kbe/src/lib/client_lib/clientapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ PyObject* ClientApp::__py_fireEvent(PyObject* self, PyObject* args)
496496
PyUnicode_AsWideCharStringRet0 = PyUnicode_AsWideCharString(pyitem, NULL);
497497
if(PyUnicode_AsWideCharStringRet0 == NULL)
498498
{
499-
PyErr_Format(PyExc_AssertionError, "ClientApp::fireEvent(%s): arg2 not is str!\n", eventdata.name);
499+
PyErr_Format(PyExc_AssertionError, "ClientApp::fireEvent(%s): arg2 not is str!\n", eventdata.name.c_str());
500500
PyErr_PrintEx(0);
501501
return NULL;
502502
}

0 commit comments

Comments
 (0)