diff options
| author | Andreas Schwab | 2016-02-27 16:53:03 +0100 |
|---|---|---|
| committer | Andreas Schwab | 2016-02-27 16:59:50 +0100 |
| commit | 9e078e592f02108c3b27c66513da4696b09e8125 (patch) | |
| tree | 043a8f5c5072ce93448fc8ae74696e58df3f8fb9 /src | |
| parent | 064adf6ff026699f660f331e4a27f1cf61f9ad72 (diff) | |
| download | emacs-9e078e592f02108c3b27c66513da4696b09e8125.tar.gz emacs-9e078e592f02108c3b27c66513da4696b09e8125.zip | |
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)
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispextern.h | 4 |
1 files 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 { | |||
| 1973 | resolving weak and neutral types */ | 1973 | resolving weak and neutral types */ |
| 1974 | bidi_type_t type_after_wn; /* bidi type after overrides and Wn */ | 1974 | bidi_type_t type_after_wn; /* bidi type after overrides and Wn */ |
| 1975 | bidi_type_t orig_type; /* original bidi type, as found in the buffer */ | 1975 | bidi_type_t orig_type; /* original bidi type, as found in the buffer */ |
| 1976 | char resolved_level; /* final resolved level of this character */ | 1976 | signed char resolved_level; /* final resolved level of this character */ |
| 1977 | char isolate_level; /* count of isolate initiators unmatched by PDI */ | 1977 | signed char isolate_level; /* count of isolate initiators unmatched by PDI */ |
| 1978 | ptrdiff_t invalid_levels; /* how many PDFs to ignore */ | 1978 | ptrdiff_t invalid_levels; /* how many PDFs to ignore */ |
| 1979 | ptrdiff_t invalid_isolates; /* how many PDIs to ignore */ | 1979 | ptrdiff_t invalid_isolates; /* how many PDIs to ignore */ |
| 1980 | struct bidi_saved_info prev; /* info about previous character */ | 1980 | struct bidi_saved_info prev; /* info about previous character */ |