diff options
| author | Christian Tismer <tismer@stackless.com> | 2021-08-04 12:27:17 +0200 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2021-08-06 00:06:45 +0200 |
| commit | a21203d534c2947a2e5f472ace3e83c552e83191 (patch) | |
| tree | 99b0b5a81bfc9c885a830f36543ba97790f95b35 /sources/pyside6/PySide6/glue/qtgui.cpp | |
| parent | 521dc4b6dcdd7d04a9ef6afe273833016f7ba31c (diff) | |
Shiboken: Remove cheating macros
There are a number of cheating macros that allow to use
the same code in Python 2 and 3. Because Python 2 is gone,
remove these macros.
This conversion was partially difficult since certain types
collapsed in the XML files and generated functions contained
substrings of the macros. This is actually the fourth attempt.
Task-number: PYSIDE-1019
Pick-to: 6.1
Change-Id: I116877afc8aa36f4710a40df1769f600b6b750ea
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/PySide6/glue/qtgui.cpp')
| -rw-r--r-- | sources/pyside6/PySide6/glue/qtgui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/PySide6/glue/qtgui.cpp b/sources/pyside6/PySide6/glue/qtgui.cpp index 5b91790cf..5874dc608 100644 --- a/sources/pyside6/PySide6/glue/qtgui.cpp +++ b/sources/pyside6/PySide6/glue/qtgui.cpp @@ -510,8 +510,8 @@ if (PySequence_Check(_key)) { if (PySequence_Fast_GET_SIZE(key.object()) == 2) { PyObject *posx = PySequence_Fast_GET_ITEM(key.object(), 0); PyObject *posy = PySequence_Fast_GET_ITEM(key.object(), 1); - Py_ssize_t x = PyInt_AsSsize_t(posx); - Py_ssize_t y = PyInt_AsSsize_t(posy); + Py_ssize_t x = PyLong_AsSsize_t(posx); + Py_ssize_t y = PyLong_AsSsize_t(posy); float ret = (*%CPPSELF)(x,y); return %CONVERTTOPYTHON[float](ret); } |
