From d6ba420eb8e8fa58992147ec1d5a7332591ad953 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Mon, 15 Jul 2024 16:29:08 +0800 Subject: [PATCH] more fix --- include/util/tutil.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/util/tutil.h b/include/util/tutil.h index e6d9b4fdd9..d3003c27ba 100644 --- a/include/util/tutil.h +++ b/include/util/tutil.h @@ -163,8 +163,8 @@ static FORCE_INLINE int32_t taosGetTbHashVal(const char *tbname, int32_t tblen, #define TAOS_CHECK_GOTO(CODE, LINO, LABEL) \ do { \ if ((CODE) != TSDB_CODE_SUCCESS) { \ - if ((LINO) != NULL) { \ - *(LINO) = __LINE__; \ + if (LINO) { \ + *((int32_t *)(LINO)) = __LINE__; \ } \ goto LABEL; \ } \