From e333f47f2789a54d4a21486aa30019ffb0ff3893 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Thu, 20 Jul 2023 19:16:17 +0800 Subject: [PATCH] tarray2/typeof: remove typeof for windows size --- include/util/tarray2.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/util/tarray2.h b/include/util/tarray2.h index c8b0163a8f..d8d303ebc3 100644 --- a/include/util/tarray2.h +++ b/include/util/tarray2.h @@ -132,9 +132,9 @@ static FORCE_INLINE int32_t tarray2SortInsert(void *arr, const void *elePtr, int (a)->capacity = 0; \ } while (0) -#define TARRAY2_INSERT_PTR(a, idx, ep) tarray2InsertBatch(a, idx, ep, 1, sizeof(typeof((a)->data[0]))) -#define TARRAY2_APPEND_PTR(a, ep) tarray2InsertBatch(a, (a)->size, ep, 1, sizeof(typeof((a)->data[0]))) -#define TARRAY2_APPEND_BATCH(a, ep, n) tarray2InsertBatch(a, (a)->size, ep, n, sizeof(typeof((a)->data[0]))) +#define TARRAY2_INSERT_PTR(a, idx, ep) tarray2InsertBatch(a, idx, ep, 1, sizeof((a)->data[0])) +#define TARRAY2_APPEND_PTR(a, ep) tarray2InsertBatch(a, (a)->size, ep, 1, sizeof((a)->data[0])) +#define TARRAY2_APPEND_BATCH(a, ep, n) tarray2InsertBatch(a, (a)->size, ep, n, sizeof((a)->data[0])) #define TARRAY2_APPEND(a, e) TARRAY2_APPEND_PTR(a, &(e)) // return (TYPE *) @@ -170,4 +170,4 @@ static FORCE_INLINE int32_t tarray2SortInsert(void *arr, const void *elePtr, int } #endif -#endif /*_TD_UTIL_TARRAY2_H_*/ \ No newline at end of file +#endif /*_TD_UTIL_TARRAY2_H_*/