Permalink
Browse files

Fix toHex function.

  • Loading branch information...
1 parent e59c9e9 commit 7cb927ec08fdb80921d4ad261fc3af2e3da93921 @nelhage committed Jun 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 betaweb.js
View
@@ -7,7 +7,7 @@ var BETA = {
};
function toHex(x) {
- if (x < 0) x += 0x80000000;
+ if (x < 0) x += 0x100000000;
var str = x.toString(16);
while (str.length < 8)
str = '0' + str;

0 comments on commit 7cb927e

Please sign in to comment.