diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-07-18 22:38:44 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-07-18 22:38:44 (GMT) |
commit | a12b4cfaa5459cf45d64b7f882f8968de3d876a8 (patch) | |
tree | 9e7f8dc59ed49aedf9e07ce3ac62b68a36c3b9a9 /Modules | |
parent | 2d2fc229a05ae4bb65a8d0c1f7a588b73539d361 (diff) | |
download | cpython-a12b4cfaa5459cf45d64b7f882f8968de3d876a8.zip cpython-a12b4cfaa5459cf45d64b7f882f8968de3d876a8.tar.gz cpython-a12b4cfaa5459cf45d64b7f882f8968de3d876a8.tar.bz2 |
A Python float is a C double; redeclare defaulttimeout as such; stops
compiler wngs on Windows.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 99e5b62..cba261e 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -523,7 +523,7 @@ internal_select(PySocketSockObject *s, int writing) /* Initialize a new socket object. */ -static float defaulttimeout = -1.0; /* Default timeout for new sockets */ +static double defaulttimeout = -1.0; /* Default timeout for new sockets */ static void init_sockobject(PySocketSockObject *s, |