!147 priLen 返回值判断有误。

Merge pull request !147 from chenyude/codex
This commit is contained in:
openharmony_ci
2022-08-23 12:23:34 +00:00
committed by Gitee
+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;
}