From 26dc784103914b9d6ba36e0a96fa4b3af977626f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 4 Aug 2022 21:43:38 +0200 Subject: user/tests: split the tests by parts of codebase --- src/shared/printf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/shared') diff --git a/src/shared/printf.c b/src/shared/printf.c index f019ac4..4e81603 100644 --- a/src/shared/printf.c +++ b/src/shared/printf.c @@ -47,8 +47,7 @@ static void pad(struct out_state *os, struct mods *m, size_t len) { } static void output_uint(struct out_state *os, struct mods *m, unsigned long long n) { - // TODO static assert sizeof(unsigned long long) <= 8 - char buf[20]; + char buf[sizeof(unsigned long long) * 3]; size_t pos = sizeof(buf); if (!n) { -- cgit v1.2.3