qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgiu...@apache.org
Subject svn commit: r1487827 - /qpid/proton/trunk/proton-c/src/engine/engine.c
Date Thu, 30 May 2013 12:25:09 GMT
Author: kgiusti
Date: Thu May 30 12:25:09 2013
New Revision: 1487827

URL: http://svn.apache.org/r1487827
Log:
NO-JIRA: use cast to avoid conversion warnings from older C++ compilers

Modified:
    qpid/proton/trunk/proton-c/src/engine/engine.c

Modified: qpid/proton/trunk/proton-c/src/engine/engine.c
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/src/engine/engine.c?rev=1487827&r1=1487826&r2=1487827&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/src/engine/engine.c (original)
+++ qpid/proton/trunk/proton-c/src/engine/engine.c Thu May 30 12:25:09 2013
@@ -1908,10 +1908,10 @@ static pn_timestamp_t pn_tick_amqp(pn_io
   if (transport->remote_idle_timeout && !transport->close_sent) {
     if (transport->keepalive_deadline == 0 ||
         transport->last_bytes_output != transport->bytes_output) {
-      transport->keepalive_deadline = now + (transport->remote_idle_timeout/2.0);
+      transport->keepalive_deadline = now + (pn_timestamp_t)(transport->remote_idle_timeout/2.0);
       transport->last_bytes_output = transport->bytes_output;
     } else if (transport->keepalive_deadline <= now) {
-      transport->keepalive_deadline = now + (transport->remote_idle_timeout/2.0);
+      transport->keepalive_deadline = now + (pn_timestamp_t)(transport->remote_idle_timeout/2.0);
       if (transport->disp->available == 0) {    // no outbound data pending
         // so send empty frame (and account for it!)
         pn_post_frame(transport->disp, 0, "");



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message