From a5b42e32fe8e2d2e486c68dc8f3b2ea8d923b9ff Mon Sep 17 00:00:00 2001 From: lion Date: Mon, 3 Apr 2023 09:50:23 +0800 Subject: [PATCH] convert length type to compitatible with the old std --- binding/c/xdb_searcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/c/xdb_searcher.c b/binding/c/xdb_searcher.c index 6bcae3a..8b9f996 100644 --- a/binding/c/xdb_searcher.c +++ b/binding/c/xdb_searcher.c @@ -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; }