convert length type to compitatible with the old std

This commit is contained in:
lion
2023-04-03 09:50:23 +08:00
parent 7599cb1dfc
commit a5b42e32fe

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