pidl: Always call PyLong_FromLongLong() in ndr_PyLong_FromLongLong()
[bbaumbach/samba-autobuild/.git] / pidl / lib / Parse / Pidl / Samba4 / Python.pm
index 10ea3e6ad1bce270ff01d6a17e06709ef1df01fa..4530b113bf6b13ab708ea86dc489ae26767c999d 100644 (file)
@@ -2318,11 +2318,7 @@ static inline long long ndr_sizeof2intmax(size_t var_size)
 
 static inline PyObject *ndr_PyLong_FromLongLong(long long v)
 {
-       if (v > LONG_MAX || v < LONG_MIN) {
-               return PyLong_FromLongLong(v);
-       } else {
-               return PyLong_FromLong(v);
-       }
+       return PyLong_FromLongLong(v);
 }
 
 static inline PyObject *ndr_PyLong_FromUnsignedLongLong(unsigned long long v)