Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 24305:428cbbf05639 legacy-trunk
A Python float is a C double; redeclare defaulttimeout as such; stops
compiler wngs on Windows.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Thu, 18 Jul 2002 22:38:44 +0000 |
| parents | 93434bc0899d |
| children | 29ae8e89153b |
line wrap: on
line diff
--- a/Modules/socketmodule.c Thu Jul 18 21:29:17 2002 +0000 +++ b/Modules/socketmodule.c Thu Jul 18 22:38:44 2002 +0000 @@ -523,7 +523,7 @@ /* 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,
