From 587ff130cc19013ef21645db5cc802bae7b7dcf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 2 Oct 2020 13:51:37 +0200 Subject: [PATCH] upgrade: swc, deno_doc, deno_lint, dprint (denoland/deno#7793) --- fmt/printf.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fmt/printf.ts b/fmt/printf.ts index 4bd5c9e0e1cc..d3a87c51bc1c 100644 --- a/fmt/printf.ts +++ b/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: {