diff options
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r-- | cppgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp index a0de62bbe..2d25d2adb 100644 --- a/cppgenerator.cpp +++ b/cppgenerator.cpp @@ -715,7 +715,7 @@ void CppGenerator::writePolymorphicDecisor(QTextStream& s, PolymorphicData* pare if (polymorphicData->argType()->isContainer() && ((ContainerTypeEntry*)polymorphicData->argType()->typeEntry())->type() == ContainerTypeEntry::PairContainer) { - s << " && PyTuple_GET_SIZE(" << pyArgName << ") == 2"; + s << " && PySequence_Size(" << pyArgName << ") == 2"; } if (signatureFound && varargs) { |