Fix logic error
This commit is contained in:
parent
c448c37cc9
commit
20677d4be1
|
@ -94,7 +94,7 @@ public class MultiRecipientMessageProvider implements MessageBodyReader<MultiRec
|
||||||
private long convertNetworkByteOrderToLong(byte[] buffer) {
|
private long convertNetworkByteOrderToLong(byte[] buffer) {
|
||||||
long result = 0;
|
long result = 0;
|
||||||
for (int i = 0; i < 8; i++) {
|
for (int i = 0; i < 8; i++) {
|
||||||
result = (result << (i * 8)) | (buffer[i] & 0xFFL);
|
result = (result << 8) | (buffer[i] & 0xFFL);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue