--- _dbus_bindings/conn-methods.c.old 2007-07-06 22:18:35.000000000 +0200 +++ _dbus_bindings/conn-methods.c 2007-07-06 22:18:52.000000000 +0200 @@ -358,7 +358,7 @@ Connection_send_message_with_reply(Connection *self, PyObject *args, PyObject *kw) { dbus_bool_t ok; - double timeout_s = -1.0; + float timeout_s = -1.0; int timeout_ms; PyObject *obj, *callable; DBusMessage *msg; @@ -387,7 +387,7 @@ timeout_ms = -1; } else { - if (timeout_s > ((double)INT_MAX) / 1000.0) { + if (timeout_s > ((float)INT_MAX) / 1000.0) { PyErr_SetString(PyExc_ValueError, "Timeout too long"); return NULL; } @@ -439,7 +439,7 @@ static PyObject * Connection_send_message_with_reply_and_block(Connection *self, PyObject *args) { - double timeout_s = -1.0; + float timeout_s = -1.0; int timeout_ms; PyObject *obj; DBusMessage *msg, *reply; @@ -459,7 +459,7 @@ timeout_ms = -1; } else { - if (timeout_s > ((double)INT_MAX) / 1000.0) { + if (timeout_s > ((float)INT_MAX) / 1000.0) { PyErr_SetString(PyExc_ValueError, "Timeout too long"); return NULL; }