signed type cannot be involved in the bit operation.

Signed-off-by: yudechen <chenyude@huawei.com>
Change-Id: Ie5bd5a9983348cd469b7cc72bc24549927feaa9b
This commit is contained in:
yudechen
2022-07-11 18:49:50 +08:00
parent 898ed7d2a0
commit 83673ddff2
+4 -3
View File
@@ -556,6 +556,7 @@ int32_t ComparePcidString(const char *pcidString, const char *rpcidString, Compa
bool priSysFound;
uint32_t pcidPriSyscapLen, rpcidPriSyscapLen;
uint32_t i, j, temp1, temp2;
uint32_t retFlag = 0;
uint32_t pcidOsAarry[PCID_OUT_BUFFER] = {0};
uint32_t rpcidOsAarry[PCID_OUT_BUFFER] = {0};
@@ -632,13 +633,13 @@ int32_t ComparePcidString(const char *pcidString, const char *rpcidString, Compa
}
if (versionFlag > 0) {
ret |= 0x1 << 0;
retFlag |= 0x1 << 0;
}
if (ossyscapFlag > 0 || prisyscapFlag > 0) {
ret |= 0x1 << 1;
retFlag |= 0x1 << 1;
result->missSyscapNum = ossyscapFlag + prisyscapFlag;
}
return ret;
return retFlag;
}
int32_t FreeCompareError(CompareError *result)