From 9e078e592f02108c3b27c66513da4696b09e8125 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 27 Feb 2016 16:53:03 +0100 Subject: [PATCH] Fix char signedness issue in bidi code * src/dispextern.h (struct bidi_t): Change type of resolved_level and isolate_level to signed char. (Bug#22830) --- src/dispextern.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dispextern.h b/src/dispextern.h index 7d7d7305b43..00667c5a8fa 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -1973,8 +1973,8 @@ struct bidi_it { resolving weak and neutral types */ bidi_type_t type_after_wn; /* bidi type after overrides and Wn */ bidi_type_t orig_type; /* original bidi type, as found in the buffer */ - char resolved_level; /* final resolved level of this character */ - char isolate_level; /* count of isolate initiators unmatched by PDI */ + signed char resolved_level; /* final resolved level of this character */ + signed char isolate_level; /* count of isolate initiators unmatched by PDI */ ptrdiff_t invalid_levels; /* how many PDFs to ignore */ ptrdiff_t invalid_isolates; /* how many PDIs to ignore */ struct bidi_saved_info prev; /* info about previous character */ -- 2.39.2