BrowserSubprocess - TreatWarningAsError for debug builds

Statically cast size_t to int to remove warnings
This commit is contained in:
Alex Maitland
2021-09-10 10:08:40 +10:00
parent b3fd1f598c
commit 4596d33f1e
6 changed files with 13 additions and 8 deletions
@@ -149,9 +149,9 @@ namespace CefSharp
if (type == VTYPE_LIST)
{
auto subList = list->GetList(index);
size_t size = subList->GetSize();
auto size = static_cast<int>(subList->GetSize());
auto result = CefV8Value::CreateArray(size);
for (size_t i = 0; i < size; i++)
for (int i = 0; i < size; i++)
{
result->SetValue(i, DeserializeV8Object(subList, i));
}