fix: the return value judged incorrectly.

Signed-off-by: yudechen <chenyude@huawei.com>
Change-Id: I1d22f7104704fb02036bef3b2c74f55dd5c758b0
This commit is contained in:
yudechen
2022-08-23 19:50:38 +08:00
parent 86c1de540c
commit 77401b51a6
+1 -1
View File
@@ -162,7 +162,7 @@ bool EncodePrivateSyscap(char **output, int *outputLen)
}
uint32_t priLen = bufferLen - PCID_MAIN_BYTES - 1;
if (priLen <= 0) {
if ((int)priLen <= 0) {
*outputLen = 0;
return false;
}