From af67c57a482154c518a87a693719681d88d7a98c Mon Sep 17 00:00:00 2001 From: ibireme Date: Sun, 25 Aug 2024 19:32:15 +0800 Subject: [PATCH] Fix errors in Github CI. --- src/yyjson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yyjson.c b/src/yyjson.c index e199a73..3a99d5c 100644 --- a/src/yyjson.c +++ b/src/yyjson.c @@ -7258,7 +7258,7 @@ static_inline u8 *write_u32_len_1_to_9(u32 val, u8 *buf) { if (val >= 100000000) { u32 hi = val / 10000000; val = val - hi * 10000000; - *buf++ = (u8)hi + (u8)'0'; + *buf++ = (u8)(hi + '0'); } return write_u32_len_1_to_8((u32)val, buf); }