summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp_connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'librabbitmq/amqp_connection.c')
-rw-r--r--librabbitmq/amqp_connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/librabbitmq/amqp_connection.c b/librabbitmq/amqp_connection.c
index 7ba6f42..214dbec 100644
--- a/librabbitmq/amqp_connection.c
+++ b/librabbitmq/amqp_connection.c
@@ -139,8 +139,8 @@ int amqp_tune_connection(amqp_connection_state_t state,
if (0 == current_time) {
return AMQP_STATUS_TIMER_FAILURE;
}
- state->next_send_heartbeat = current_time + (state->heartbeat * AMQP_NS_PER_S);
- state->next_recv_heartbeat = current_time + (2 * state->heartbeat * AMQP_NS_PER_S);
+ state->next_send_heartbeat = current_time + ((uint64_t)state->heartbeat * AMQP_NS_PER_S);
+ state->next_recv_heartbeat = current_time + (2 * (uint64_t)state->heartbeat * AMQP_NS_PER_S);
}
state->outbound_buffer.len = frame_max;