[hackers] [libgrapheme] Add UINT32_C()-macro around constant || Laslo Hunhold
commit c031ada2cb11489c032f6ddd84fa7091efe6c784
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Fri Oct 28 17:09:44 2022 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Fri Oct 28 17:09:44 2022 +0200
Add UINT32_C()-macro around constant
Signed-off-by: Laslo Hunhold <dev_AT_frign.de>
diff --git a/src/word.c b/src/word.c
index 4bdf62b..8ecb60e 100644
--- a/src/word.c
+++ b/src/word.c
_AT_@ -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 {
Received on Fri Oct 28 2022 - 17:11:02 CEST
This archive was generated by hypermail 2.3.0
: Fri Oct 28 2022 - 17:12:37 CEST