You shall fix ze bugs you shall ve happy

This commit is contained in:
Mohamed Ashraf
2026-03-02 16:30:43 +04:00
parent 0803f67f47
commit 3ece2a588d
8 changed files with 97 additions and 21 deletions

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,
@@ -176,7 +176,7 @@ void DataOutputStream::writeChars(const wstring& str)
//v - a boolean value to be written.
void DataOutputStream::writeBoolean(bool b)
{
stream->write( b ? (byte)1 : (byte)0 );
stream->write( b ? 1 : 0 );
// TODO 4J Stu - Error handling?
written += 1;
}
@@ -265,4 +265,4 @@ void DataOutputStream::writePlayerUID(PlayerUID player)
#else
writeLong(player);
#endif // PS3
}
}