Introduction
Introduction Statistics Contact Development Disclaimer Help
Add UINT32_C()-macro around constant - libgrapheme - unicode string library
git clone git://git.suckless.org/libgrapheme
Log
Files
Refs
README
LICENSE
---
commit c031ada2cb11489c032f6ddd84fa7091efe6c784
parent 6375ae6d522413ba1a6e3b2a62c6e5e99349aafa
Author: Laslo Hunhold <[email protected]>
Date: Fri, 28 Oct 2022 17:09:44 +0200
Add UINT32_C()-macro around constant
Signed-off-by: Laslo Hunhold <[email protected]>
Diffstat:
M src/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 {
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.