diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-03 12:26:28 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-03 15:40:05 +0200 |
commit | 157e03911ba0e2e8fd74899702588296693fd4ab (patch) | |
tree | 0844de0e12cc2de8f1634689190008a61460e88c /sources/pyside2/PySide2/QtCore/typesystem_core_common.xml | |
parent | d6f460db0f9fcdc2756b29209f21a7b87587881c (diff) |
QByteArray::number(): suppress small integer types as is for setNum()
Otherwise, overflow errors can occur.
Task-number: PYSIDE-904
Change-Id: I42486a27bcdb8e7562d411b4519d2e61f315be1d
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside2/PySide2/QtCore/typesystem_core_common.xml')
-rw-r--r-- | sources/pyside2/PySide2/QtCore/typesystem_core_common.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml b/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml index 986356720..82b0a7ebe 100644 --- a/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml +++ b/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml @@ -2054,12 +2054,18 @@ <modify-function signature="operator>=(const char*,QByteArray)" remove="all"/> <modify-function signature="operator[](int)const" remove="all"/> <modify-function signature="operator[](uint)const" remove="all"/> - <!-- Those types have the same representation in Python, an overload would be useless. --> + <!-- Those types have the same representation in Python, an overload + would be useless and cause overflow errors. --> <modify-function signature="setNum(uint,int)" remove="all"/> <modify-function signature="setNum(ushort,int)" remove="all"/> <modify-function signature="setNum(float,char,int)" remove="all"/> <modify-function signature="setNum(short,int)" remove="all"/> <modify-function signature="setNum(qulonglong,int)" remove="all"/> + <modify-function signature="number(uint,int)" remove="all"/> + <modify-function signature="number(ushort,int)" remove="all"/> + <modify-function signature="number(float,char,int)" remove="all"/> + <modify-function signature="number(short,int)" remove="all"/> + <modify-function signature="number(qulonglong,int)" remove="all"/> <!--### --> |