@@ -131,7 +131,7 @@ void ShibokenGenerator::initPrimitiveTypesCorrespondences()
131
131
// PyLong
132
132
m_pythonPrimitiveTypeName[" unsigned long" ] = " PyLong" ;
133
133
m_pythonPrimitiveTypeName[" signed long" ] = " PyLong" ;
134
- m_pythonPrimitiveTypeName[" ulong " ] = " PyLong" ;
134
+ m_pythonPrimitiveTypeName[" unsigned long int " ] = " PyLong" ;
135
135
m_pythonPrimitiveTypeName[" long long" ] = " PyLong" ;
136
136
m_pythonPrimitiveTypeName[" __int64" ] = " PyLong" ;
137
137
m_pythonPrimitiveTypeName[" unsigned long long" ] = " PyLong" ;
@@ -640,7 +640,7 @@ QString ShibokenGenerator::cpythonBaseName(const TypeEntry* type)
640
640
while (ptype->basicAliasedTypeEntry ())
641
641
ptype = ptype->basicAliasedTypeEntry ();
642
642
if (ptype->targetLangApiName () == ptype->name ())
643
- baseName = m_pythonPrimitiveTypeName[ ptype->name ()] ;
643
+ baseName = pythonPrimitiveTypeName ( ptype->name ()) ;
644
644
else
645
645
baseName = ptype->targetLangApiName ();
646
646
} else if (type->isEnum ()) {
@@ -779,7 +779,10 @@ QString ShibokenGenerator::fixedCppTypeName(const TypeEntry* type, QString typeN
779
779
780
780
QString ShibokenGenerator::pythonPrimitiveTypeName (const QString& cppTypeName)
781
781
{
782
- return ShibokenGenerator::m_pythonPrimitiveTypeName.value (cppTypeName, QString ());
782
+ QString rv = ShibokenGenerator::m_pythonPrimitiveTypeName.value (cppTypeName, QString ());
783
+ if (rv.isEmpty ())
784
+ abort ();
785
+ return rv;
783
786
}
784
787
785
788
QString ShibokenGenerator::pythonPrimitiveTypeName (const PrimitiveTypeEntry* type)
0 commit comments