A Python float is a C double; redeclare defaulttimeout as such; stops
compiler wngs on Windows.
This commit is contained in:
parent
2d2fc229a0
commit
a12b4cfaa5
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue