[core] Fix bugprone-too-small-loop-variable errors

As reported by clang-tidy-8.
This commit is contained in:
Thiago Marcos P. Santos
2020-03-27 18:20:33 +02:00
parent 31338c5d88
commit b4e9c0bd11
7 changed files with 10 additions and 8 deletions

View File

@@ -1374,7 +1374,7 @@ void NodeMap::QueryRenderedFeatures(const Nan::FunctionCallbackInfo<v8::Value>&
}
auto array = Nan::New<v8::Array>();
for (unsigned int i = 0; i < optional.size(); i++) {
for (std::size_t i = 0; i < optional.size(); i++) {
array->Set(i, toJS(optional[i]));
}
info.GetReturnValue().Set(array);