fix: fix unsigned can't less than zero.

Signed-off-by: yudechen <chenyude@huawei.com>
Change-Id: Ica044f16c48d6e41746b2af3f5e9ddb0ec9103c5
This commit is contained in:
yudechen
2022-11-01 18:12:12 +08:00
parent 48987150de
commit d47ad15592
+1 -1
View File
@@ -424,7 +424,7 @@ int32_t DecodePCID(char *inputFile, char *outDirPath)
char priSyscapStr[SINGLE_SYSCAP_LEN] = {0};
char *tempPriSyscapStr = priSyscapStr;
char fullPriSyscapStr[SINGLE_SYSCAP_LEN] = {0};
if (privateSyscapLen < 0) {
if ((long)privateSyscapLen < 0) {
PRINT_ERR("parse private syscap failed.");
ret = -1;
goto FREE_VECTOR_OUT;