!1185 fix: 【ipc】【编译告警处理】数据类型保持一致

Merge pull request !1185 from jialinbo/master
This commit is contained in:
openharmony_ci 2024-06-27 12:38:51 +00:00 committed by Gitee
commit 7ff3bb6a09
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -69,7 +69,7 @@ napi_value CreateTypeCodeEnum(napi_env env)
napi_value enumValues[ENUM_TYPECODE_COUNT] = {nullptr};
napi_value enumObject = nullptr;
napi_create_object(env, &enumObject);
for (int i = 0; i < ENUM_TYPECODE_COUNT; i++) {
for (size_t i = 0; i < ENUM_TYPECODE_COUNT; i++) {
napi_create_int32(env, i, &enumValues[i]);
}