Files
Phoenix/unittests/test_listctrl.py
Stefan Brüns 88b8565654 Fix overflow check for wxUIntPtr type
long is 32bit on 32-bit archs and on Win64 (see
https://en.cppreference.com/w/cpp/language/types ). As SIP uses
PyLong_AsLongLong internally and uses an extra bounds check only if
explicitly enabled("sip.enableoverflowchecking(True)"), the overflow
only triggers when it also overflows `long long`, i.e. when
_LONG_MAX == _LLONG_MAX.
2022-08-14 01:30:33 +02:00

5.2 KiB