commit c031ada2cb11489c032f6ddd84fa7091efe6c784
Author:     Laslo Hunhold <[email protected]>
AuthorDate: Fri Oct 28 17:09:44 2022 +0200
Commit:     Laslo Hunhold <[email protected]>
CommitDate: Fri Oct 28 17:09:44 2022 +0200

    Add UINT32_C()-macro around constant
    
    Signed-off-by: Laslo Hunhold <[email protected]>

diff --git a/src/word.c b/src/word.c
index 4bdf62b..8ecb60e 100644
--- 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 {

Reply via email to