Skip to content

Commit c03945b

Browse files
committed
ly common REFACTOR bigger type before var args
To avoid alignment issues.
1 parent 703a610 commit c03945b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ly_common.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ ly_getutf8(const char **input, uint32_t *utf8_char, size_t *bytes_read)
263263
* @return Result of the operation.
264264
*/
265265
static int
266-
ly_utf8_and_equal(const char *input, uint8_t bytes, ...)
266+
ly_utf8_and_equal(const char *input, int bytes, ...)
267267
{
268268
va_list ap;
269269
int i, and, byte;
@@ -294,7 +294,7 @@ ly_utf8_and_equal(const char *input, uint8_t bytes, ...)
294294
* @return Result of the operation.
295295
*/
296296
static int
297-
ly_utf8_less(const char *input, uint8_t bytes, ...)
297+
ly_utf8_less(const char *input, int bytes, ...)
298298
{
299299
va_list ap;
300300
int i, byte;
@@ -327,7 +327,7 @@ ly_utf8_less(const char *input, uint8_t bytes, ...)
327327
* @return Result of the operation.
328328
*/
329329
static int
330-
ly_utf8_greater(const char *input, uint8_t bytes, ...)
330+
ly_utf8_greater(const char *input, int bytes, ...)
331331
{
332332
va_list ap;
333333
int i, byte;

0 commit comments

Comments
 (0)