From 09c71487be9b30473ce42533eb9072e88693c75a Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 11 Apr 2020 14:48:43 +0200 Subject: [PATCH] Fixed mismatched integer types. --- .../AngelScript/ByteCodeHandling/MemoryByteCodeStream.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;