Skip to content

Commit

Permalink
fix(wasm-size): Correctly format negative numbers (#4702)
Browse files Browse the repository at this point in the history
`numfmt -100` interprets `-100` as a cli flag and complains, passing
input via stdin fixes it
  • Loading branch information
Serhii Tatarintsev authored Feb 8, 2024
1 parent c4aabf6 commit abf82dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/wasm-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
run: |
fmt() {
numfmt --format '%.3f' --to=iec-i --suffix=B "$1"
echo "$1" | numfmt --format '%.3f' --to=iec-i --suffix=B
}
compute_diff() {
Expand Down

0 comments on commit abf82dc

Please sign in to comment.