fix warning

This commit is contained in:
Brad Hefta-Gaub 2016-04-20 19:06:31 -07:00
parent 248ac8d760
commit 5244274ae4

View file

@ -277,7 +277,7 @@ quint64 ObjectAction::localTimeToServerTime(quint64 timeValue) const {
}
qint64 serverClockSkew = getEntityServerClockSkew();
if (serverClockSkew < 0 && timeValue <= -serverClockSkew) {
if (serverClockSkew < 0 && timeValue <= (quint64)(-serverClockSkew)) {
return 1; // non-zero but long-expired value to avoid negative roll-over
}
@ -291,7 +291,7 @@ quint64 ObjectAction::serverTimeToLocalTime(quint64 timeValue) const {
}
qint64 serverClockSkew = getEntityServerClockSkew();
if (serverClockSkew > 0 && timeValue <= serverClockSkew) {
if (serverClockSkew > 0 && timeValue <= (quint64)serverClockSkew) {
return 1; // non-zero but long-expired value to avoid negative roll-over
}