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 -3
View File
@@ -68,7 +68,7 @@ void DataOutputStream::close()
//v - a byte value to be written.
void DataOutputStream::writeByte(byte a)
{
stream->write( a );
stream->write(static_cast<unsigned int>(a));
}
//Converts the double argument to a long using the doubleToLongBits method in class Double,
@@ -184,7 +184,7 @@ void DataOutputStream::writeChars(const wstring& str)
//v - a boolean value to be written.
void DataOutputStream::writeBoolean(bool b)
{
stream->write( b ? static_cast<byte>(1) : static_cast<byte>(0) );
stream->write( b ? static_cast<unsigned int>(1) : static_cast<unsigned int>(0) );
// TODO 4J Stu - Error handling?
written += 1;
}
@@ -279,4 +279,4 @@ void DataOutputStream::writePlayerUID(PlayerUID player)
OutputStream* DataOutputStream::getChildOutputStream()
{
return stream;
}
}