From c03945be5a52c39f70abd44b39745cf595556bbf Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Mon, 4 Mar 2024 08:30:30 +0100 Subject: [PATCH] ly common REFACTOR bigger type before var args To avoid alignment issues. --- src/ly_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ly_common.c b/src/ly_common.c index e80ca93be..e2293bc39 100644 --- a/src/ly_common.c +++ b/src/ly_common.c @@ -263,7 +263,7 @@ ly_getutf8(const char **input, uint32_t *utf8_char, size_t *bytes_read) * @return Result of the operation. */ static int -ly_utf8_and_equal(const char *input, uint8_t bytes, ...) +ly_utf8_and_equal(const char *input, int bytes, ...) { va_list ap; int i, and, byte; @@ -294,7 +294,7 @@ ly_utf8_and_equal(const char *input, uint8_t bytes, ...) * @return Result of the operation. */ static int -ly_utf8_less(const char *input, uint8_t bytes, ...) +ly_utf8_less(const char *input, int bytes, ...) { va_list ap; int i, byte; @@ -327,7 +327,7 @@ ly_utf8_less(const char *input, uint8_t bytes, ...) * @return Result of the operation. */ static int -ly_utf8_greater(const char *input, uint8_t bytes, ...) +ly_utf8_greater(const char *input, int bytes, ...) { va_list ap; int i, byte;