Skip to content

Commit

Permalink
Merge pull request #30 from OutSystems/FromString
Browse files Browse the repository at this point in the history
Fixed unsigned flag not defaulting to false on fromString
  • Loading branch information
dcodeIO committed Mar 31, 2016
2 parents 27b43e5 + 62e9f48 commit 8bd86df
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
6 changes: 5 additions & 1 deletion dist/long.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,13 @@
throw Error('empty string');
if (str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity")
return ZERO;
if (typeof unsigned === 'number') // For goog.math.long compatibility
if (typeof unsigned === 'number') {
// For goog.math.long compatibility
radix = unsigned,
unsigned = false;
} else {
unsigned = !! unsigned;
}
radix = radix || 10;
if (radix < 2 || 36 < radix)
throw RangeError('radix');
Expand Down
16 changes: 8 additions & 8 deletions dist/long.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8bd86df

Please sign in to comment.