From 8ed37563888f7956da99636c62f18459729d5966 Mon Sep 17 00:00:00 2001 From: Cristian Maureira-Fredes Date: Wed, 2 May 2018 15:51:05 +0200 Subject: Use PyLong instead of PyInt for QVariant Python 3 uses PyLong for integer manipulation, and since it is a valid type in Python 2 we can use it instead to have better compatibility, and avoid integer overflows. We keep the PyInt entry to avoid breaking other sections of the code when this type is required. Added a couple of PyInt_* alias to use PyLong_* ones instead. Task-number: PYSIDE-648 Change-Id: Id6af66050c5ab81fc51c1c07b1c9422a954b81c0 Reviewed-by: Alexandru Croitor Reviewed-by: Friedemann Kleint Reviewed-by: Christian Tismer --- sources/pyside2/PySide2/QtCore/typesystem_core_common.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sources/pyside2') diff --git a/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml b/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml index 598754fdd..403166d4a 100644 --- a/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml +++ b/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml @@ -394,8 +394,9 @@ double in = %CONVERTTOCPP[double](%in); %out = %OUTTYPE(in); - - int in = %CONVERTTOCPP[int](%in); + + + qlonglong in = %CONVERTTOCPP[qlonglong](%in); %out = %OUTTYPE(in); -- cgit v1.2.3