1
0
Fork 0
mirror of https://github.com/subsurface/subsurface.git synced 2025-02-19 22:16:15 +00:00

Avoid compile time warning

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-07-23 16:12:16 +09:00
parent c1f9cfe9a8
commit 70e1938aa7

View file

@ -186,7 +186,7 @@ bool DiveEventItem::shouldBeHidden()
*/
if (!strcmp(event->name, "surface")) {
int time = event->time.seconds;
if (time <= 30 || time + 30 >= dc->duration.seconds)
if (time <= 30 || time + 30 >= (int)dc->duration.seconds)
return true;
}