to whoever at 4j made this code not adhere to any C standard: why

This commit is contained in:
Leah Anderson
2026-03-02 10:40:53 -07:00
parent f10f5845fd
commit daa04a789a
11 changed files with 59 additions and 59 deletions

View File

@@ -14,12 +14,12 @@ ClientCommandPacket::ClientCommandPacket(int action)
void ClientCommandPacket::read(DataInputStream *dis)
{
action = dis->readByte();
action = (int)dis->readByte();
}
void ClientCommandPacket::write(DataOutputStream *dos)
{
dos->writeByte(action & 0xff);
dos->writeByte((std::byte)action & (std::byte)0xff);
}
void ClientCommandPacket::handle(PacketListener *listener)
@@ -30,4 +30,4 @@ void ClientCommandPacket::handle(PacketListener *listener)
int ClientCommandPacket::getEstimatedSize()
{
return 1;
}
}