diff --git a/src/ScriptResolving/AngelScript/ByteCodeHandling/MemoryByteCodeStream.hpp b/src/ScriptResolving/AngelScript/ByteCodeHandling/MemoryByteCodeStream.hpp index 277c46e..ee23698 100644 --- a/src/ScriptResolving/AngelScript/ByteCodeHandling/MemoryByteCodeStream.hpp +++ b/src/ScriptResolving/AngelScript/ByteCodeHandling/MemoryByteCodeStream.hpp @@ -32,7 +32,7 @@ public: _out = (uint8_t*)newLoc; } auto start = reinterpret_cast(ptr); - for (auto index = 0; index < size; index++) { + for (asUINT index = 0; index < size; index++) { _out[initialSize + index] = *(start + index); } _size += size; @@ -46,7 +46,7 @@ public: if (_index + toRead > _size) { toRead = _size - _index; } - for (auto index = 0; index < toRead; index++) { + for (asUINT index = 0; index < toRead; index++) { *(start + index) = _out[_index + index]; } _index += toRead;