diff options
-rw-r--r-- | Misc/NEWS | 2 | ||||
-rw-r--r-- | Modules/resource.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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. diff --git a/Modules/resource.c b/Modules/resource.c index b1dd5d1..8653f03 100644 --- a/Modules/resource.c +++ b/Modules/resource.c @@ -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 * |