aboutsummaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
Diffstat (limited to 'generator')
-rw-r--r--generator/cppgenerator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index 52a2abff5..c012b9e9a 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -1475,6 +1475,9 @@ void CppGenerator::writeErrorSection(QTextStream& s, OverloadData& overloadData)
strArg = argType->fullName();
if (strArg == "PyUnicode")
strArg = "unicode";
+ else if (strArg == "uchar")
+ strArg = "buffer"; // This depends on an inject code to be true, but if it's not true
+ // the function wont work at all, so it must be true.
}
if (!arg->defaultValueExpression().isEmpty()) {
strArg += " = ";