mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 02:11:19 -04:00
fix: the return value judged incorrectly.
Signed-off-by: yudechen <chenyude@huawei.com> Change-Id: I1d22f7104704fb02036bef3b2c74f55dd5c758b0
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user