Minecraft.World (build): Clang compilation fixes

This commit is contained in:
Anaël committed 2026-11-30 07:19:01 +01:00
1 parent c409324bb7
commit ea80182494
17 files changed
+182 -140

No files matched your search

+3 -2
View File
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "InputOutputStream.h"
#include <cstdint>
// Creates ByteArrayInputStream that uses buf as its buffer array. The initial value of pos is offset and
// the initial value of count is the minimum of offset+length and buf.length. The buffer array is not copied.
@@ -50,7 +51,7 @@ int ByteArrayInputStream::read()
}
else
{
return buf[pos++];
return static_cast<int>(buf[pos++]);
}
}
@@ -118,7 +119,7 @@ void ByteArrayInputStream::close()
// n - the number of bytes to be skipped.
// Returns:
// the actual number of bytes skipped.
__int64 ByteArrayInputStream::skip(__int64 n)
int64_t ByteArrayInputStream::skip(int64_t n)
{
int newPos = pos + n;