aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sources/shiboken6/generator/shiboken/headergenerator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/sources/shiboken6/generator/shiboken/headergenerator.cpp b/sources/shiboken6/generator/shiboken/headergenerator.cpp
index d73419e17..a07d3d2d5 100644
--- a/sources/shiboken6/generator/shiboken/headergenerator.cpp
+++ b/sources/shiboken6/generator/shiboken/headergenerator.cpp
@@ -920,8 +920,7 @@ void HeaderGenerator::writeSbkTypeFunction(TextStream &s, const AbstractMetaClas
{
s << "template<> inline PyTypeObject *SbkType< "
<< getFullTypeName(cppClass) << " >() "
- << "{ return reinterpret_cast<PyTypeObject *>("
- << cpythonTypeNameExt(cppClass->typeEntry()) << "); }\n";
+ << "{ return " << cpythonTypeNameExt(cppClass->typeEntry()) << "; }\n";
}
void HeaderGenerator::writeSbkTypeFunction(TextStream &s, const AbstractMetaType &metaType)