mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:58:27 +02:00
Fixed signed/unsigned warnign.
This commit is contained in:
parent
1e93137e6b
commit
d975e3f0ce
1 changed files with 1 additions and 1 deletions
|
@ -1438,7 +1438,7 @@ void Audio::renderToolBox(int x, int y, bool boxed) {
|
||||||
static const float PULSE_MAX = 1.0f;
|
static const float PULSE_MAX = 1.0f;
|
||||||
static const float PULSE_FREQUENCY = 1.0f; // in Hz
|
static const float PULSE_FREQUENCY = 1.0f; // in Hz
|
||||||
qint64 now = usecTimestampNow();
|
qint64 now = usecTimestampNow();
|
||||||
if (now - _iconPulseTimeReference > USECS_PER_SECOND) {
|
if (now - _iconPulseTimeReference > (qint64)USECS_PER_SECOND) {
|
||||||
// Prevents t from getting too big, which would diminish glm::cos precision
|
// Prevents t from getting too big, which would diminish glm::cos precision
|
||||||
_iconPulseTimeReference = now - ((now - _iconPulseTimeReference) % USECS_PER_SECOND);
|
_iconPulseTimeReference = now - ((now - _iconPulseTimeReference) % USECS_PER_SECOND);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue