From a12b4cfaa5459cf45d64b7f882f8968de3d876a8 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 18 Jul 2002 22:38:44 +0000 Subject: A Python float is a C double; redeclare defaulttimeout as such; stops compiler wngs on Windows. --- Modules/socketmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 99e5b62..cba261e 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, -- cgit v0.12