git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1151857 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2011-07-28 14:12:02 +00:00
parent b0f9afa1b3
commit 1aafa4fa1c
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ public class BitArray implements Serializable {
public void writeToStream(DataOutput dataOut) throws IOException {
dataOut.writeByte(length);
if (length <= BYTE_SIZE) {
dataOut.writeByte((int)bits);
dataOut.writeByte((byte)bits);
} else if (length <= SHORT_SIZE) {
dataOut.writeShort((short)bits);
} else if (length <= INT_SIZE) {