From bcbb45067b9a206b39aeae3587b51fd7decccde2 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Tue, 1 Dec 2020 18:42:07 +0800 Subject: [PATCH] fix compile error --- src/util/inc/tarray.h | 2 +- src/util/src/tarray.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/inc/tarray.h b/src/util/inc/tarray.h index 96bcd64c3e..d2f564baaf 100644 --- a/src/util/inc/tarray.h +++ b/src/util/inc/tarray.h @@ -100,7 +100,7 @@ void* taosArrayInsert(SArray* pArray, size_t index, void* pData); * @param index * @param pData */ -void* taosArraySet(SArray* pArray, size_t index, void* pData); +void taosArraySet(SArray* pArray, size_t index, void* pData); /** * remove data entry of the given index diff --git a/src/util/src/tarray.c b/src/util/src/tarray.c index df6d7b0ba2..88ce936a0e 100644 --- a/src/util/src/tarray.c +++ b/src/util/src/tarray.c @@ -133,7 +133,7 @@ void* taosArrayInsert(SArray* pArray, size_t index, void* pData) { return dst; } -void* taosArraySet(SArray* pArray, size_t index, void* pData) { +void taosArraySet(SArray* pArray, size_t index, void* pData) { assert(index < pArray->size); memcpy(TARRAY_GET_ELEM(pArray, index), pData, pArray->elemSize); } -- GitLab