Fix MSVC's C4267 warnings

This commit is contained in:
Andrei Kortunov 2021-05-02 10:43:44 +04:00
parent a70f93a3cf
commit f9d42ed396
24 changed files with 50 additions and 51 deletions

View file

@ -45,7 +45,7 @@ namespace Interpreter
for (; index; --index)
{
offset += std::strlen (literalBlock+offset) + 1;
offset += static_cast<int>(std::strlen (literalBlock+offset)) + 1;
if (offset / 4 >= static_cast<int> (mCode[3]))
throw std::out_of_range("out of range");
}