(svn r3186) Unnecessary casts and truncation

This commit is contained in:
tron
2005-11-15 09:05:16 +00:00
parent b9729fb72e
commit 9f8c5d8fd2
4 changed files with 4 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ Packet *NetworkSend_Init(PacketType type)
void NetworkSend_uint8(Packet *packet, uint8 data)
{
assert(packet->size < sizeof(packet->buffer) - sizeof(data));
packet->buffer[packet->size++] = data & 0xFF;
packet->buffer[packet->size++] = data;
}
void NetworkSend_uint16(Packet *packet, uint16 data)