aboutsummaryrefslogtreecommitdiffstats
path: root/generator/shibokengenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'generator/shibokengenerator.cpp')
-rw-r--r--generator/shibokengenerator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/generator/shibokengenerator.cpp b/generator/shibokengenerator.cpp
index de96d03ac..8d98869d7 100644
--- a/generator/shibokengenerator.cpp
+++ b/generator/shibokengenerator.cpp
@@ -865,6 +865,8 @@ QString ShibokenGenerator::guessCPythonCheckFunction(const QString& type)
metaType = 0;
} else if (type == "PyTypeObject") {
retval = "PyType_Check";
+ } else if (type == "PyBuffer") {
+ retval = "Shiboken::Buffer::checkType";
} else {
retval = QString("%1_Check").arg(type);
}