mirror of https://github.com/python/cpython.git
Fix SF #632624, test_resource failure on alpha/64bit
Return PyLongs instead ot PyInts. On alphas, 9223372036854775807 became -1.
This commit is contained in:
parent
d631ebe20b
commit
94a83fdc15
|
@ -292,6 +292,8 @@ Core and builtins
|
|||
Extension modules
|
||||
-----------------
|
||||
|
||||
- resource.getrlimit() now returns longs instead of ints.
|
||||
|
||||
- readline now dynamically adjusts its input/output stream if
|
||||
sys.stdin/stdout changes.
|
||||
|
||||
|
|
|
@ -132,7 +132,7 @@ resource_getrlimit(PyObject *self, PyObject *args)
|
|||
(LONG_LONG) rl.rlim_max);
|
||||
}
|
||||
#endif
|
||||
return Py_BuildValue("ii", (long) rl.rlim_cur, (long) rl.rlim_max);
|
||||
return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
Loading…
Reference in New Issue