summaryrefslogtreecommitdiff
path: root/std/fmt/printf.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-10-02 13:51:37 +0200
committerGitHub <noreply@github.com>2020-10-02 13:51:37 +0200
commite5348a6a38b3c06a916223ad0b99e8cfe47725b1 (patch)
tree8c8f5f0e2328781b96f92e4842cc0b4a64b35650 /std/fmt/printf.ts
parent5cd29b37f7946ac05783bae777be8503182a8b8e (diff)
upgrade: swc, deno_doc, deno_lint, dprint (#7793)
Diffstat (limited to 'std/fmt/printf.ts')
-rw-r--r--std/fmt/printf.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/std/fmt/printf.ts b/std/fmt/printf.ts
index 4bd5c9e0e..d3a87c51b 100644
--- a/std/fmt/printf.ts
+++ b/std/fmt/printf.ts
@@ -207,7 +207,7 @@ class Printf {
this.handleWidthOrPrecisionRef(WorP.WIDTH);
// force . or flag at this point
break;
- default:
+ default: {
const val = parseInt(c);
// most likely parseInt does something stupid that makes
// it unusable for this scenario ...
@@ -220,6 +220,7 @@ class Printf {
flags.width = flags.width == -1 ? 0 : flags.width;
flags.width *= 10;
flags.width += val;
+ }
} // switch c
break;
case State.PRECISION: {