diff options
Diffstat (limited to 'sip/tdecore/tdeconfigbase.sip')
-rw-r--r-- | sip/tdecore/tdeconfigbase.sip | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sip/tdecore/tdeconfigbase.sip b/sip/tdecore/tdeconfigbase.sip index 53b36a2..8b0d147 100644 --- a/sip/tdecore/tdeconfigbase.sip +++ b/sip/tdecore/tdeconfigbase.sip @@ -277,15 +277,13 @@ protected: %ConvertToTypeCode if (sipIsErr == NULL) - return PyLong_Check (sipPy) || PyInt_Check (sipPy); + return PyLong_Check (sipPy); long long *ll = new long long; *ll = 0; if (PyLong_Check (sipPy)) *ll = PyLong_AsLongLong (sipPy); - else if (PyInt_Check (sipPy)) - *ll = (long long)PyInt_AS_LONG (sipPy); *sipCppPtr = ll; @@ -313,15 +311,13 @@ protected: %ConvertToTypeCode if (sipIsErr == NULL) - return PyLong_Check (sipPy) || PyInt_Check (sipPy); + return PyLong_Check (sipPy); unsigned long long *ul = new unsigned long long; *ul = 0; if (PyLong_Check (sipPy)) *ul = PyLong_AsUnsignedLongLong (sipPy); - else if (PyInt_Check (sipPy)) - *ul = (unsigned long long)PyInt_AS_LONG (sipPy); *sipCppPtr = ul; |