Skip to content

Commit

Permalink
upgrade: swc, deno_doc, deno_lint, dprint (denoland/deno#7793)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju authored and denobot committed Feb 1, 2021
1 parent d4dcf63 commit ca6738e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fmt/printf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...
Expand All @@ -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: {
Expand Down

0 comments on commit ca6738e

Please sign in to comment.