summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Misc/NEWS2
-rw-r--r--Modules/resource.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 1e83389..3a026df 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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 *