Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a12b4cf

Browse files
committed
A Python float is a C double; redeclare defaulttimeout as such; stops
compiler wngs on Windows.
1 parent 2d2fc22 commit a12b4cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ internal_select(PySocketSockObject *s, int writing)
523523

524524
/* Initialize a new socket object. */
525525

526-
static float defaulttimeout = -1.0; /* Default timeout for new sockets */
526+
static double defaulttimeout = -1.0; /* Default timeout for new sockets */
527527

528528
static void
529529
init_sockobject(PySocketSockObject *s,

0 commit comments

Comments
 (0)