diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/library.js b/src/library.js index 0aaef0b2..995fa2ab 100644 --- a/src/library.js +++ b/src/library.js @@ -2158,12 +2158,8 @@ LibraryManager.library = { } // Add sign if needed - if (flagAlwaysSigned) { - if (currArg < 0) { - prefix = '-' + prefix; - } else { - prefix = '+' + prefix; - } + if (flagAlwaysSigned && currArg >= 0) { + prefix = '+' + prefix; } // Move sign to prefix so we zero-pad after the sign |