chainentry: fix potential versionbits comparison failure.
This commit is contained in:
parent
407f416f22
commit
8be68ab392
@ -371,7 +371,7 @@ ChainEntry.prototype.hasBit = function hasBit(deployment) {
|
||||
var bits = this.version & constants.versionbits.TOP_MASK;
|
||||
var topBits = constants.versionbits.TOP_BITS;
|
||||
var mask = 1 << deployment.bit;
|
||||
return bits === topBits && (this.version & mask) !== 0;
|
||||
return (bits >>> 0) === topBits && (this.version & mask) !== 0;
|
||||
};
|
||||
|
||||
ChainEntry.prototype.__defineGetter__('rhash', function() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user