lib/mqtt/packet.rb in mqtt-0.4.0 vs lib/mqtt/packet.rb in mqtt-0.5.0

- old
+ new

@@ -192,10 +192,10 @@ end # Build up the body length field bytes begin digit = (body_length % 128) - body_length = (body_length / 128) + body_length = body_length.div(128) # if there are more digits to encode, set the top bit of this digit digit |= 0x80 if (body_length > 0) header.push(digit) end while (body_length > 0)