libgrapheme

unicode string library
git clone git://git.suckless.org/libgrapheme
Log | Files | Refs | README | LICENSE

commit c031ada2cb11489c032f6ddd84fa7091efe6c784
parent 6375ae6d522413ba1a6e3b2a62c6e5e99349aafa
Author: Laslo Hunhold <dev@frign.de>
Date:   Fri, 28 Oct 2022 17:09:44 +0200

Add UINT32_C()-macro around constant

Signed-off-by: Laslo Hunhold <dev@frign.de>

Diffstat:
Msrc/word.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/word.c b/src/word.c @@ -14,7 +14,7 @@ struct word_break_state static inline uint_least8_t get_word_break_prop(uint_least32_t cp) { - if (likely(cp <= 0x10FFFF)) { + if (likely(cp <= UINT32_C(0x10FFFF))) { return (uint_least8_t) word_break_minor[word_break_major[cp >> 8] + (cp & 0xff)]; } else {