From 7a88fc97b6c4dcf892c30a63fbeb40a9af64ba92 Mon Sep 17 00:00:00 2001 From: xia-bubai Date: Fri, 15 Aug 2025 10:12:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=9C=89=E6=97=A0=E7=AC=A6?= =?UTF-8?q?=E5=8F=B7=E5=87=BD=E6=95=B0=E6=B7=B7=E7=94=A8=20Signed-off-by:?= =?UTF-8?q?=20xia-bubai=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Idb1593b604c2724bc11088704e794720509c965d --- interfaces/innerkits/nativetoken/src/nativetoken.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/innerkits/nativetoken/src/nativetoken.c b/interfaces/innerkits/nativetoken/src/nativetoken.c index a949e538b..0fe510647 100644 --- a/interfaces/innerkits/nativetoken/src/nativetoken.c +++ b/interfaces/innerkits/nativetoken/src/nativetoken.c @@ -300,9 +300,9 @@ uint32_t AtlibInit(void) g_tokenListHead->next = NULL; int32_t isClearOrCreate = 0; - int32_t ret = ParseTokenInfo(); + uint32_t ret = ParseTokenInfo(); if (ret != ATRET_SUCCESS) { - ReportNativeTokenExceptionEvent(NATIVE_TOKEN_INIT, ret, GetThreadErrorMsg()); + ReportNativeTokenExceptionEvent(NATIVE_TOKEN_INIT, (int32_t)ret, GetThreadErrorMsg()); ClearThreadErrorMsg(); if (g_tokenListHead->next != NULL) { FreeTokenList(); @@ -842,7 +842,7 @@ static uint32_t UpdateNewTokenToListAndFile(NativeTokenInfoParams *tokenInfo, Na if (ret != ATRET_SUCCESS) { LOGC("Failed to UpdateTokenInfoInList, ret=%u.", ret); RemoveNodeFromList(&tokenNode); - ReportNativeTokenExceptionEvent(UPDATE_NODE, ret, GetThreadErrorMsg()); + ReportNativeTokenExceptionEvent(UPDATE_NODE, (int32_t)ret, GetThreadErrorMsg()); return ret; } ret = UpdateInfoInCfgFile(tokenNode); -- Gitee