Skip to content
Permalink
Browse files

core, bugfix: compile warning on widows.

  • Loading branch information...
xicilion committed Sep 11, 2018
1 parent 545e080 commit 11106559bd005febb48f2fda7bb9eba53ed9e893
Showing with 3 additions and 3 deletions.
  1. +1 −1 fibjs/src/sandbox/SandBox.cpp
  2. +1 −1 fibjs/src/sandbox/SandBox_require.cpp
  3. +1 −1 fibjs/src/util/util.cpp
@@ -201,7 +201,7 @@ result_t deepFreeze(v8::Local<v8::Value> v)
.ToLocalChecked();

TryCatch try_catch;
for (int32_t i = 0; i < names->Length(); i++)
for (int32_t i = 0; i < (int32_t)names->Length(); i++)
deepFreeze(obj->Get(names->Get(i)));
}

@@ -75,7 +75,7 @@ result_t SandBox::refresh()
v8::Local<v8::Object> modules = mods();
v8::Local<v8::Array> names = modules->GetPropertyNames(modules->CreationContext()).ToLocalChecked();

for (int32_t i = 0; i < names->Length(); i++) {
for (int32_t i = 0; i < (int32_t)names->Length(); i++) {
v8::Local<v8::Object> module = v8::Local<v8::Object>::Cast(modules->Get(names->Get(i)));
v8::Local<v8::Value> v = module->GetPrivate(module->CreationContext(),
v8::Private::ForApi(isolate->m_isolate, strEntry))
@@ -137,7 +137,7 @@ result_t util_base::deepFreeze(v8::Local<v8::Value> v)
v8::Local<v8::Array> names = obj->GetPropertyNames(obj->CreationContext())
.ToLocalChecked();

for (int32_t i = 0; i < names->Length(); i++)
for (int32_t i = 0; (int32_t)i < names->Length(); i++)
deepFreeze(obj->Get(names->Get(i)));
}

0 comments on commit 1110655

Please sign in to comment.
You can’t perform that action at this time.