diff options
author | Andrei Karas <akaras@inbox.ru> | 2020-09-21 13:59:17 +0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-02-14 15:56:44 -0300 |
commit | befe0a249fdeaf48851a695ab56685648a64060e (patch) | |
tree | c284763b78c3318fb42dd99bfa07ae108be82e6a /src/char | |
parent | a7c7755746d4835ed2e07c044f40500095ec477a (diff) | |
download | hercules-befe0a249fdeaf48851a695ab56685648a64060e.tar.gz hercules-befe0a249fdeaf48851a695ab56685648a64060e.tar.bz2 hercules-befe0a249fdeaf48851a695ab56685648a64060e.tar.xz hercules-befe0a249fdeaf48851a695ab56685648a64060e.zip |
Fix possible wrong ip check in geoip.c
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/geoip.c | 2 |
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)) |