Skip to content

Commit

Permalink
ly common REFACTOR bigger type before var args
Browse files Browse the repository at this point in the history
To avoid alignment issues.
  • Loading branch information
michalvasko committed Mar 4, 2024
1 parent 703a610 commit c03945b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ly_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c03945b

Please sign in to comment.