convert length type to compitatible with the old std

This commit is contained in:
lion 2023-04-03 09:50:23 +08:00
parent fdc1a14cdd
commit b609e27f25
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}