Skip to content

Commit 80acc7d

Browse files
authored
Merge pull request #51 from kiran13kumar13/master
convert lowBits to unsigned in hash.js
2 parents f5906a0 + 12d84a2 commit 80acc7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Hash.prototype.digest = function (enc) {
6161

6262
// uint64
6363
} else {
64-
var lowBits = bits & 0xffffffff
64+
var lowBits = (bits & 0xffffffff) >>> 0
6565
var highBits = (bits - lowBits) / 0x100000000
6666

6767
this._block.writeUInt32BE(highBits, this._blockSize - 8)

0 commit comments

Comments
 (0)