diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-09 18:15:54 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-09 18:15:54 -0700 |
commit | 28a4c2a2fd9d1469a0bf17ddf7a74483da2f5aa7 (patch) | |
tree | 714b7f9aa5df3b7cfb31be7adee208a48bfa2f8b /src/library.js | |
parent | c08a8adbcc878986a68866a4756bbbfaf5fcd0be (diff) |
fix 0x0 in formatString; fixes #1164
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index 6bfb49ef..84071b68 100644 --- a/src/library.js +++ b/src/library.js @@ -2869,7 +2869,7 @@ LibraryManager.library = { } else if (next == {{{ charCode('o') }}}) { argText = (flagAlternative ? '0' : '') + currAbsArg.toString(8); } else if (next == {{{ charCode('x') }}} || next == {{{ charCode('X') }}}) { - prefix = flagAlternative ? '0x' : ''; + prefix = (flagAlternative && currArg != 0) ? '0x' : ''; #if PRECISE_I64_MATH if (argSize == 8 && i64Math) { if (origArg[1]) { |