diff --git a/src/core/lib/Protobuf.mjs b/src/core/lib/Protobuf.mjs index 03d5943e..0cdf41f2 100644 --- a/src/core/lib/Protobuf.mjs +++ b/src/core/lib/Protobuf.mjs @@ -205,7 +205,7 @@ class Protobuf { (this.data[this.offset] & this.VALUE) << shift : (this.data[this.offset] & this.VALUE) * Math.pow(2, shift); shift += 7; - } while ((this.data[this.offset++] & this.MSD) === this.MSB); + } while ((this.data[this.offset++] & this.MSB) === this.MSB); return fieldNumber; }