From 96fc18e630542d13635be9fbb7b3e690eb9b76c0 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Fri, 30 Jun 2023 14:04:36 +0800 Subject: [PATCH] win compile --- include/util/tarray2.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/util/tarray2.h b/include/util/tarray2.h index 5a90ca1847..c8b0163a8f 100644 --- a/include/util/tarray2.h +++ b/include/util/tarray2.h @@ -138,8 +138,7 @@ static FORCE_INLINE int32_t tarray2SortInsert(void *arr, const void *elePtr, int #define TARRAY2_APPEND(a, e) TARRAY2_APPEND_PTR(a, &(e)) // return (TYPE *) -#define TARRAY2_SEARCH(a, ep, cmp, flag) \ - (typeof((a)->data))tarray2Search(a, ep, sizeof(typeof((a)->data[0])), (__compar_fn_t)cmp, flag) +#define TARRAY2_SEARCH(a, ep, cmp, flag) tarray2Search(a, ep, sizeof(typeof((a)->data[0])), (__compar_fn_t)cmp, flag) #define TARRAY2_SEARCH_IDX(a, ep, cmp, flag) \ tarray2SearchIdx(a, ep, sizeof(typeof((a)->data[0])), (__compar_fn_t)cmp, flag)