aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-15 19:15:00 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-15 19:15:00 -0700
commit459e5e6f8f0c4b0310ab00f7c0f708f65a66dc18 (patch)
tree1d4e892965e42e78d1d1ddad03dd0489c13b3a8c /src
parent1b1dfff97b152f237ff77628ea76ce67246d3139 (diff)
remove leading zeros in %llx
Diffstat (limited to 'src')
-rw-r--r--src/library.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 18f4702c..51921541 100644
--- a/src/library.js
+++ b/src/library.js
@@ -2821,7 +2821,9 @@ LibraryManager.library = {
} else if (next == {{{ charCode('x') }}} || next == {{{ charCode('X') }}}) {
prefix = flagAlternative ? '0x' : '';
#if PRECISE_I64_MATH
- if (argSize == 8 && i64Math) argText = (origArg[1]>>>0).toString(16) + (origArg[0]>>>0).toString(16); else
+ if (argSize == 8 && i64Math) {
+ argText = (origArg[1] ? (origArg[1]>>>0).toString(16) : '') + (origArg[0]>>>0).toString(16);
+ } else
#endif
if (currArg < 0) {
// Represent negative numbers in hex as 2's complement.