From ebd919bc43a879b95f104745a5a229f9be5e6de7 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sat, 29 May 2021 15:48:24 +0800 Subject: [PATCH] [td-4385]fix compiler error on arm32 --- src/client/src/TSDBJNIConnector.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/src/TSDBJNIConnector.c b/src/client/src/TSDBJNIConnector.c index 717f1689d3..324c436dce 100644 --- a/src/client/src/TSDBJNIConnector.c +++ b/src/client/src/TSDBJNIConnector.c @@ -919,8 +919,9 @@ JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_TSDBJNIConnector_setTableNameTagsI } int32_t code = taos_stmt_set_tbname_tags((void*)stmt, name, tagsBind); - jniDebug("jobj:%p, conn:%p, set table name:%s, numOfTags:%d", jobj, tsconn, name, - numOfTags); + + int32_t nTags = (int32_t) numOfTags; + jniDebug("jobj:%p, conn:%p, set table name:%s, numOfTags:%d", jobj, tsconn, name, nTags); tfree(tagsData); tfree(lengthArray);