mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Fix signed/unsigned compare warning
This commit is contained in:
parent
f3d6663665
commit
fe86be61b6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user