diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-05-16 20:26:29 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-05-16 20:26:29 (GMT) |
commit | 6fdd7b81fa2ea3c2158cc786a63188a2779e49f1 (patch) | |
tree | c820c3f2be8a049f905adafadeb5311dfd64445d | |
parent | 0b1bc56bb663932807b34713ce1fe014bc52ea99 (diff) | |
download | cpython-6fdd7b81fa2ea3c2158cc786a63188a2779e49f1.zip cpython-6fdd7b81fa2ea3c2158cc786a63188a2779e49f1.tar.gz cpython-6fdd7b81fa2ea3c2158cc786a63188a2779e49f1.tar.bz2 |
Issue #17964: Fix os.sysconf(): the return type of the C sysconf() function
is long, not int.
-rw-r--r-- | Misc/NEWS | 3 | ||||
-rw-r--r-- | Modules/posixmodule.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -91,6 +91,9 @@ Core and Builtins Library ------- +- Issue #17964: Fix os.sysconf(): the return type of the C sysconf() function + is long, not int. + - Fix typos in the multiprocessing module. - Issue #17754: Make ctypes.util.find_library() independent of the locale. diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index bf57138..cb72bf0 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -9550,7 +9550,7 @@ posix_sysconf(PyObject *self, PyObject *args) int name; if (PyArg_ParseTuple(args, "O&:sysconf", conv_sysconf_confname, &name)) { - int value; + long value; errno = 0; value = sysconf(name); |