Skip to content

Commit 04f2ab5

Browse files
committed
More changes... :)
1 parent 6ec07eb commit 04f2ab5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/protocol/Parser.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ Parser.prototype.parseLengthCodedNumber = function() {
167167
length = 8;
168168

169169
if (this._supportBigNumbers) {
170-
if (this._buffer[this._offset + 6] > 31 ||
171-
(this._buffer[this._offset + 7] > 0 && this._buffer[this._offset + 7] < 128)) {
170+
if (this._buffer[this._offset + 6] > 31 || this._buffer[this._offset + 7]) {
172171
value = new BigNumber(0);
173172
bigNumber = true;
174173
}

0 commit comments

Comments
 (0)