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")) { if (!strcmp(event->name, "surface")) {
int time = event->time.seconds; int time = event->time.seconds;
if (time <= 30 || time + 30 >= dc->duration.seconds) if (time <= 30 || time + 30 >= (int)dc->duration.seconds)
return true; return true;
} }