[tor-commits] [tor/release-0.2.2] Fix signed/unsigned compare warning
arma at torproject.org
arma at torproject.org
Fri Apr 1 14:17:56 UTC 2011
commit fe86be61b6d84fbb442b13aa52139e6a3892dac0
Author: Nick Mathewson <nickm at torproject.org>
Date: Fri Mar 18 12:42:00 2011 -0400
Fix signed/unsigned compare warning
---
src/or/geoip.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/or/geoip.c b/src/or/geoip.c
index a991654..654241c 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -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;
More information about the tor-commits
mailing list