mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Issue #17964: Fix os.sysconf(): the return type of the C sysconf() function
is long, not int.
This commit is contained in:
parent
0b1bc56bb6
commit
6fdd7b81fa
2 changed files with 4 additions and 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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue