From: Tim Peters Date: Thu, 18 Jul 2002 22:38:44 +0000 (+0000) Subject: A Python float is a C double; redeclare defaulttimeout as such; stops X-Git-Tag: v2.3c1~4944 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a12b4cfaa5459cf45d64b7f882f8968de3d876a8;p=thirdparty%2FPython%2Fcpython.git A Python float is a C double; redeclare defaulttimeout as such; stops compiler wngs on Windows. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 99e5b6250b92..cba261e85cdc 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,