summaryrefslogtreecommitdiff
path: root/src/char/geoip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char/geoip.c')
-rw-r--r--src/char/geoip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/geoip.c b/src/char/geoip.c
index 67c057aff..ac371eec6 100644
--- a/src/char/geoip.c
+++ b/src/char/geoip.c
@@ -83,7 +83,7 @@ static const char *geoip_getcountry(uint32 ipnum)
for (depth = 31; depth >= 0; depth--) {
const unsigned char *buf = geoip->data->cache + (long)6 *offset;
- if (ipnum & (1 << depth)) {
+ if (ipnum & (1U << (uint32)depth)) {
/* Take the right-hand branch */
x = (buf[3*1 + 0] << (0*8))
+ (buf[3*1 + 1] << (1*8))