summaryrefslogtreecommitdiff
path: root/src/or/geoip.c
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2018-06-04 11:56:37 +0300
committerrl1987 <rl1987@sdf.lonestar.org>2018-06-04 11:56:37 +0300
commit39bbb8d9cfb0258b1e65dc98177e0773a19e4eb0 (patch)
treebcfc20429b6ddf247e002062203193d1dd769063 /src/or/geoip.c
parent3716ddf1b42270b5db76f8b7b458c5f61aa40e23 (diff)
downloadtor-39bbb8d9cfb0258b1e65dc98177e0773a19e4eb0.tar.gz
tor-39bbb8d9cfb0258b1e65dc98177e0773a19e4eb0.zip
Avoid casting smartlist index implicitly
Diffstat (limited to 'src/or/geoip.c')
-rw-r--r--src/or/geoip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/geoip.c b/src/or/geoip.c
index 2c917c564d..d59043a7f6 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -150,7 +150,7 @@ geoip_add_entry(const tor_addr_t *low, const tor_addr_t *high,
idx = ((uintptr_t)idxplus1_)-1;
}
{
- geoip_country_t *c = smartlist_get(geoip_countries, idx);
+ geoip_country_t *c = smartlist_get(geoip_countries, (int)idx);
tor_assert(!strcasecmp(c->countrycode, country));
}