From d533fc95953298c7c186d1eab83a78f9989772ef Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Mon, 7 Jan 2013 18:54:07 +0200 Subject: jabber.c: removed explicit type conversion According to the C99 standard integer type will be converted to real floating type before the comparison. --- src/jabber.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jabber.c b/src/jabber.c index 65ed30df..9e44bb89 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -217,7 +217,7 @@ jabber_process_events(void) } else if (prefs_get_reconnect() != 0) { if ((jabber_conn.conn_status == JABBER_DISCONNECTED) && (reconnect_timer != NULL)) { - if (g_timer_elapsed(reconnect_timer, NULL) > (prefs_get_reconnect() * 1.0)) { + if (g_timer_elapsed(reconnect_timer, NULL) > prefs_get_reconnect()) { log_debug("Attempting reconnect as %s", saved_user); jabber_connect(saved_user, saved_password, saved_altdomain); } -- cgit 1.4.1-2-gfad0