libgrapheme

Freestanding C library for unicode string handling
git clone https://git.sinitax.com/suckless/libgrapheme
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 227eb47be678aaea70b095048c4d29f82a137d51
parent 0ea9cff075677315e44a096b6e4d61a1252b95e9
Author: Laslo Hunhold <dev@frign.de>
Date:   Sat,  8 Jan 2022 16:45:47 +0100

Explicitly cast to uint_least8_t when storing property in state

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

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

diff --git a/src/character.c b/src/character.c @@ -128,7 +128,7 @@ grapheme_is_character_break(uint_least32_t cp0, uint_least32_t cp1, GRAPHEME_STA cp1_prop = get_break_prop(cp1); /* preserve prop of right codepoint for next iteration */ - state->prop = cp1_prop; + state->prop = (uint_least8_t)cp1_prop; state->prop_set = true; /* update flags */