From a4d37d76512c293b12aab1f77961f96d572557b7 Mon Sep 17 00:00:00 2001 From: bonmas14 Date: Sun, 3 Aug 2025 17:08:34 +0000 Subject: Small changes --- src/un_strings.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/un_strings.c b/src/un_strings.c index 1499726..7d73d0b 100644 --- a/src/un_strings.c +++ b/src/un_strings.c @@ -322,6 +322,7 @@ String un_string_format(Allocator alloc, String buffer, ...) { String s; List output; s64 i, j; + u32 b; Allocator talloc = un_allocator_get_temporary(); output = un_list_create(UN_KB(1), sizeof(u8), talloc); @@ -339,9 +340,10 @@ String un_string_format(Allocator alloc, String buffer, ...) { { un_list_append(&output, buffer.data + i); } break; + case 'c': { - u32 b = va_arg(args, u32); + b = va_arg(args, u32); un_list_append(&output, &b); } break; -- cgit v1.2.3-70-g09d2