From a59d1f8178527420d501eff16196b04a829a848a Mon Sep 17 00:00:00 2001 From: yudechen Date: Mon, 5 Dec 2022 21:37:14 +0800 Subject: [PATCH] chore: modify default constant to unsigned int. Signed-off-by: yudechen Change-Id: I90cfb18a7fc50f481b3388a764758ec374a62290 --- src/syscap_tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syscap_tool.c b/src/syscap_tool.c index da9cf18..01f1802 100644 --- a/src/syscap_tool.c +++ b/src/syscap_tool.c @@ -708,7 +708,7 @@ int32_t ComparePcidWithRpcidString(char *pcidFile, char *rpcidFile, uint32_t typ continue; } for (uint8_t k = 0; k < INT_BIT; k++) { - if (!(temp2 & (0x1 << k))) { + if (!(temp2 & (1U << k))) { continue; } // 2, header of pcid & rpcid