Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #7 from yorickvP/master
Browse files Browse the repository at this point in the history
fix toNumber on Int64s with offset != 0
  • Loading branch information
broofa committed Feb 18, 2014
2 parents 7ee6f82 + ffad259 commit 94080ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Int64.js
Expand Up @@ -140,7 +140,7 @@ Int64.prototype = {
var b = this.buffer, o = this.offset;

// Running sum of octets, doing a 2's complement
var negate = b[0] & 0x80, x = 0, carry = 1;
var negate = b[o] & 0x80, x = 0, carry = 1;
for (var i = 7, m = 1; i >= 0; i--, m *= 256) {
var v = b[o+i];

Expand Down

0 comments on commit 94080ee

Please sign in to comment.