Unless bytesremaining is a multiple of 8 such that it could reach 0 exactly, wrapping the unsigned value is practically guaranteed.