Closed deathcap closed 10 years ago
Yes probably. Thanks for the heads up.
While you're looking at it, "bytes > 32" seems like a really big allowance for something that's supposed to be preventing overflow. Maybe 4 (28 bits) is more appropriate? I've also seen 5 used in some places.
@SpaceManiac 4 bytes is actually all an int can hold anyways. So anything larger than that would need a BigInteger.
Thanks @deathcap
https://github.com/flow/flow-networking/blob/master/src/main/java/com/flowpowered/networking/util/ByteBufUtils.java
The
bytes
variable is constant zero. Shouldn't it be incremented in the loop?