Fix signed/unsigned compare warning

This commit is contained in:
Nick Mathewson 2011-03-18 12:42:00 -04:00
parent f3d6663665
commit fe86be61b6

View File

@ -426,7 +426,7 @@ geoip_note_client_seen(geoip_client_action_t action,
ent->action = (int)action;
HT_INSERT(clientmap, &client_history, ent);
}
if (now / 60 <= MAX_LAST_SEEN_IN_MINUTES && now >= 0)
if (now / 60 <= (int)MAX_LAST_SEEN_IN_MINUTES && now >= 0)
ent->last_seen_in_minutes = (unsigned)(now/60);
else
ent->last_seen_in_minutes = 0;