diff --git a/modules/common/appspawn_encaps.c b/modules/common/appspawn_encaps.c index 302c256fe9440b069d4ab388540363640f2d86c4..5d3e3d490d912122140ff3f7ac06df4f2b653ad7 100644 --- a/modules/common/appspawn_encaps.c +++ b/modules/common/appspawn_encaps.c @@ -149,7 +149,7 @@ APPSPAWN_STATIC int AddPermissionIntArrayToValue(cJSON *arrayItem, UserEncap *en APPSPAWN_CHECK(value != NULL, return APPSPAWN_SYSTEM_ERROR, "Failed to calloc int array value"); cJSON *arrayItemTemp = arrayItem; - for (size_t index = 0; index < arraySize; index++) { + for (uint32_t index = 0; index < arraySize; index++) { if (arrayItemTemp == NULL || !cJSON_IsNumber(arrayItemTemp)) { free(value); APPSPAWN_LOGE("Invalid int array item type"); @@ -173,7 +173,7 @@ APPSPAWN_STATIC int AddPermissionBoolArrayToValue(cJSON *arrayItem, UserEncap *e APPSPAWN_CHECK(value != NULL, return APPSPAWN_SYSTEM_ERROR, "Failed to calloc bool array value"); cJSON *arrayItemTemp = arrayItem; - for (size_t index = 0; index < arraySize; index++) { + for (uint32_t index = 0; index < arraySize; index++) { if (arrayItemTemp == NULL || !cJSON_IsBool(arrayItemTemp)) { free(value); APPSPAWN_LOGE("Invalid bool array item type");