commit 227eb47be678aaea70b095048c4d29f82a137d51
Author:     Laslo Hunhold <[email protected]>
AuthorDate: Sat Jan 8 16:45:47 2022 +0100
Commit:     Laslo Hunhold <[email protected]>
CommitDate: Sat Jan 8 16:45:47 2022 +0100

    Explicitly cast to uint_least8_t when storing property in state
    
    Signed-off-by: Laslo Hunhold <[email protected]>

diff --git a/src/character.c b/src/character.c
index 462e572..1ca94d0 100644
--- 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 */

Reply via email to