From f0ea11c70f7297cd905cf6f2ade8bcefda07dc0e Mon Sep 17 00:00:00 2001 From: mierenhoop <46939409+mierenhoop@users.noreply.github.com> Date: Sun, 10 Mar 2024 00:05:47 +0100 Subject: [PATCH] Fix binary formatting for integers 2 and 3 --- libc/fmt/formatbinary64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/fmt/formatbinary64.c b/libc/fmt/formatbinary64.c index bd8e75def..ee94b4a43 100644 --- a/libc/fmt/formatbinary64.c +++ b/libc/fmt/formatbinary64.c @@ -21,7 +21,7 @@ static inline int PickGoodWidth(unsigned x) { if (x < 16) { - if (x < 2) return 0; + if (x < 2) return 1; if (x < 8) return 7; return 15; } else {