1 parent d631ebe commit 94a83fdCopy full SHA for 94a83fd
2 files changed
Misc/NEWS
@@ -292,6 +292,8 @@ Core and builtins
292
Extension modules
293
-----------------
294
295
+- resource.getrlimit() now returns longs instead of ints.
296
+
297
- readline now dynamically adjusts its input/output stream if
298
sys.stdin/stdout changes.
299
Modules/resource.c
@@ -132,7 +132,7 @@ resource_getrlimit(PyObject *self, PyObject *args)
132
(LONG_LONG) rl.rlim_max);
133
}
134
#endif
135
- return Py_BuildValue("ii", (long) rl.rlim_cur, (long) rl.rlim_max);
+ return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max);
136
137
138
static PyObject *
0 commit comments