void Client::resetReplyTimeoutTimer(AbstractReply *cmd)
{
Q_ASSERT(cmd);
- int newTimeout = qBound(0, Client::UDP_API_COMMAND_TIMEOUT - cmd->timeSent().secsTo(QDateTime::currentDateTime()), Client::UDP_API_COMMAND_TIMEOUT);
+ int newTimeout = qBound(qint64(0), qint64(Client::UDP_API_COMMAND_TIMEOUT - cmd->timeSent().secsTo(QDateTime::currentDateTime())), qint64(Client::UDP_API_COMMAND_TIMEOUT));
newTimeout *= 1000;
replyTimeoutTimer->start(newTimeout);
}