mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Fix MSVC's C4267 warnings
This commit is contained in:
parent
a70f93a3cf
commit
f9d42ed396
24 changed files with 50 additions and 51 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue