[Python-checkins] cpython: Issue #17964: Fix os.sysconf(): the return type of the C sysconf() function
victor.stinner
python-checkins at python.org
Thu May 16 22:27:01 CEST 2013
http://hg.python.org/cpython/rev/7c60cf756097
changeset: 83793:7c60cf756097
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu May 16 22:26:29 2013 +0200
summary:
Issue #17964: Fix os.sysconf(): the return type of the C sysconf() function
is long, not int.
files:
Misc/NEWS | 3 +++
Modules/posixmodule.c | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -91,6 +91,9 @@
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
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -9550,7 +9550,7 @@
int name;
if (PyArg_ParseTuple(args, "O&:sysconf", conv_sysconf_confname, &name)) {
- int value;
+ long value;
errno = 0;
value = sysconf(name);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list