mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-02 22:18:09 +01:00
Minecraft.World (build): Clang compilation fixes
This commit is contained in:
1 parent
c409324bb7
commit
ea80182494
17 files changed
+182
-140
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user