mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
fix warning
This commit is contained in:
parent
248ac8d760
commit
5244274ae4
1 changed files with 2 additions and 2 deletions
|
@ -277,7 +277,7 @@ quint64 ObjectAction::localTimeToServerTime(quint64 timeValue) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
qint64 serverClockSkew = getEntityServerClockSkew();
|
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
|
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();
|
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
|
return 1; // non-zero but long-expired value to avoid negative roll-over
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue