From: Andreas Schwab Date: Sat, 27 Feb 2016 15:53:03 +0000 (+0100) Subject: Fix char signedness issue in bidi code X-Git-Tag: emacs-25.0.92~27 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9e078e592f02108c3b27c66513da4696b09e8125;p=emacs.git 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) --- 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 */