diff -c /home/trentm/main/contrib/python/dist/src/Modules/selectmodule.c /home/trentm/main/Apps/Perlium/Python/dist/src/Modules/selectmodule.c *** /home/trentm/main/contrib/python/dist/src/Modules/selectmodule.c Thu Jun 1 00:13:39 2000 --- /home/trentm/main/Apps/Perlium/Python/dist/src/Modules/selectmodule.c Fri Jun 2 15:53:43 2000 *************** *** 238,244 **** fd_set ifdset, ofdset, efdset; double timeout; struct timeval tv, *tvp; ! int seconds; int imax, omax, emax, max; int n; --- 238,244 ---- fd_set ifdset, ofdset, efdset; double timeout; struct timeval tv, *tvp; ! long seconds; int imax, omax, emax, max; int n; *************** *** 255,264 **** return NULL; } else { ! seconds = (int)timeout; timeout = timeout - (double)seconds; tv.tv_sec = seconds; ! tv.tv_usec = (int)(timeout*1000000.0); tvp = &tv; } --- 255,268 ---- return NULL; } else { ! if (timeout > (double)LONG_MAX) { ! PyErr_SetString(PyExc_OverflowError, "timeout period too long"); ! return NULL; ! } ! seconds = (long)timeout; timeout = timeout - (double)seconds; tv.tv_sec = seconds; ! tv.tv_usec = (long)(timeout*1000000.0); tvp = &tv; }