aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbonmas14 <bonmas14@gmail.com>2025-08-03 17:08:34 +0000
committerbonmas14 <bonmas14@gmail.com>2025-08-03 17:08:34 +0000
commita4d37d76512c293b12aab1f77961f96d572557b7 (patch)
treeb355924f5415d191c1cd0d34d7f2590f28b4d34e /src
parent1cf89852f951b59b89f2a8bd7b54a0b0b74d439c (diff)
downloadungrateful-a4d37d76512c293b12aab1f77961f96d572557b7.tar.gz
ungrateful-a4d37d76512c293b12aab1f77961f96d572557b7.zip
Small changes
Diffstat (limited to 'src')
-rw-r--r--src/un_strings.c4
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;