diff options
Diffstat (limited to 'src/un_strings.c')
-rw-r--r-- | src/un_strings.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |