summaryrefslogtreecommitdiffstats
path: root/libshiboken/basewrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libshiboken/basewrapper.cpp')
-rw-r--r--libshiboken/basewrapper.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp
index 7f7b8da8..2c1129b2 100644
--- a/libshiboken/basewrapper.cpp
+++ b/libshiboken/basewrapper.cpp
@@ -576,7 +576,11 @@ void setErrorAboutWrongArguments(PyObject* args, const char* funcName, const cha
for (int i = 0, max = PyTuple_GET_SIZE(args); i < max; ++i) {
if (i)
params += ", ";
- params += PyTuple_GET_ITEM(args, i)->ob_type->tp_name;
+ PyObject* arg = PyTuple_GET_ITEM(args, i);
+ if (PyCObject_Check(arg))
+ params += "pointer";
+ else
+ params += arg->ob_type->tp_name;
}
} else {
params = args->ob_type->tp_name;