чување 88413c238ec279e3107e8d616b9b4790e5344faa
родитељ 31dcd2bcf4114cf0e16827181252faa1126bc58b
Аутор: Страхиња Радић <sr@strahinja.org>
Датум: Thu, 11 Jun 2026 09:26:42 +0000
util.c: Run clang-format
Diffstat:
измењених датотека: 1, додавања: 4(+), брисања: 4(-)
diff --git a/util.c b/util.c
@@ -21,10 +21,10 @@ size_t
u8_string_to_unicode(uint32_t* us, const char* s, const ssize_t max)
{
uint32_t uch;
- uint32_t* pus = us;
+ uint32_t* pus = us;
const char* ps = s;
- int u8_len = 0;
- size_t added = 0;
+ int u8_len = 0;
+ size_t added = 0;
assert(s != NULL);
while (ps - s < max && *ps)
@@ -32,7 +32,7 @@ u8_string_to_unicode(uint32_t* us, const char* s, const ssize_t max)
u8_len = tb_utf8_char_to_unicode(&uch, ps);
if (!u8_len)
{
- uch = U32_REPL_CHAR;
+ uch = U32_REPL_CHAR;
u8_len = 1;
}
added++;