]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
A Python float is a C double; redeclare defaulttimeout as such; stops
authorTim Peters <tim.peters@gmail.com>
Thu, 18 Jul 2002 22:38:44 +0000 (22:38 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 18 Jul 2002 22:38:44 +0000 (22:38 +0000)
compiler wngs on Windows.

Modules/socketmodule.c

index 99e5b6250b929069dcd3910a3e559c85c408557c..cba261e85cdcc3f85dbb13561d5445baeec42e47 100644 (file)
@@ -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,