--- ./fileobject.c.old 2004-11-16 17:25:09.000000000 -0800 +++ fileobject.c 2004-11-16 17:24:33.000000000 -0800 @@ -503,6 +503,9 @@ #if !defined(HAVE_LARGEFILE_SUPPORT) offset = PyInt_AsLong(offobj); #else + if(PyFloat_Check(offobj)) { + offobj = PyLong_FromDouble(PyFloat_AsDouble(offobj)); + } offset = PyLong_Check(offobj) ? PyLong_AsLongLong(offobj) : PyInt_AsLong(offobj); #endif