mirror of
https://github.com/netfun2000/ip2region.git
synced 2026-02-27 09:44:31 +08:00
convert length type to compitatible with the old std
This commit is contained in:
@@ -132,7 +132,7 @@ XDB_PUBLIC(int) xdb_search(xdb_searcher_t *xdb, unsigned int ip, char *region_bu
|
||||
}
|
||||
|
||||
// buffer length checking
|
||||
if (data_len >= length) {
|
||||
if (data_len >= (int) length) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user