aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sources/shiboken6/generator/shiboken/pytypenames.h1
-rw-r--r--sources/shiboken6/generator/shiboken/shibokengenerator.cpp25
2 files changed, 12 insertions, 14 deletions
diff --git a/sources/shiboken6/generator/shiboken/pytypenames.h b/sources/shiboken6/generator/shiboken/pytypenames.h
index 19bfc55c0..696e0d88d 100644
--- a/sources/shiboken6/generator/shiboken/pytypenames.h
+++ b/sources/shiboken6/generator/shiboken/pytypenames.h
@@ -8,7 +8,6 @@
static inline QString pyBoolT() { return QStringLiteral("PyBool"); }
static inline QString pyFloatT() { return QStringLiteral("PyFloat"); }
-static inline QString pyIntT() { return QStringLiteral("PyLong"); }
static inline QString pyLongT() { return QStringLiteral("PyLong"); }
static inline QString pyObjectT() { return QStringLiteral("object"); }
static inline QString pyStrT() { return QStringLiteral("str"); }
diff --git a/sources/shiboken6/generator/shiboken/shibokengenerator.cpp b/sources/shiboken6/generator/shiboken/shibokengenerator.cpp
index cf38585de..1b9299a4f 100644
--- a/sources/shiboken6/generator/shiboken/shibokengenerator.cpp
+++ b/sources/shiboken6/generator/shiboken/shibokengenerator.cpp
@@ -113,17 +113,17 @@ static const QHash<QString, QString> &primitiveTypesCorrespondences()
{u"char"_s, sbkCharT()},
{u"signed char"_s, sbkCharT()},
{u"unsigned char"_s, sbkCharT()},
- {intT(), pyIntT()},
- {u"signed int"_s, pyIntT()},
- {u"uint"_s, pyIntT()},
- {u"unsigned int"_s, pyIntT()},
- {shortT(), pyIntT()},
- {u"ushort"_s, pyIntT()},
- {u"signed short"_s, pyIntT()},
- {u"signed short int"_s, pyIntT()},
- {unsignedShortT(), pyIntT()},
- {u"unsigned short int"_s, pyIntT()},
- {longT(), pyIntT()},
+ {intT(), pyLongT()},
+ {u"signed int"_s, pyLongT()},
+ {u"uint"_s, pyLongT()},
+ {u"unsigned int"_s, pyLongT()},
+ {shortT(), pyLongT()},
+ {u"ushort"_s, pyLongT()},
+ {u"signed short"_s, pyLongT()},
+ {u"signed short int"_s, pyLongT()},
+ {unsignedShortT(), pyLongT()},
+ {u"unsigned short int"_s, pyLongT()},
+ {longT(), pyLongT()},
{doubleT(), pyFloatT()},
{floatT(), pyFloatT()},
{u"unsigned long"_s, pyLongT()},
@@ -715,8 +715,7 @@ QString ShibokenGenerator::pythonOperatorFunctionName(const AbstractMetaFunction
bool ShibokenGenerator::isNumber(const QString &cpythonApiName)
{
- return cpythonApiName == pyIntT()
- || cpythonApiName == pyFloatT() || cpythonApiName == pyLongT()
+ return cpythonApiName == pyFloatT() || cpythonApiName == pyLongT()
|| cpythonApiName == pyBoolT();
}