[PATCH 3/5] utf8: use correct type for values in interval table
- From
John Keeping <john@keeping.me.uk>
- Date
- Feb 16, 2014, 16:06 UTC
- Message-ID
- <2af4618fe70a02ec92c625eb7f53485ba37827f3.1392565571.git.john@keeping.me.uk>
- In-Reply-To
- <cover.1392565571.git.john@keeping.me.uk>
We treat these as unsigned everywhere and compare against unsigned values, so declare them using the typedef we already have for this.
While we're here, fix the indentation as well.
Signed-off-by: John Keeping <john@keeping.me.uk> --- utf8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/utf8.c b/utf8.c index 24c3c5c..a831d50 100644 --- a/utf8.c +++ b/utf8.c @@ -5,8 +5,8 @@ /* This code is originally from http://www.cl.cam.ac.uk/~mgk25/ucs/ */ struct interval { - int first; - int last; + ucs_char_t first; + ucs_char_t last; }; size_t display_mode_esc_sequence_len(const char *s)
-- 1.9.rc0.187.g6292fff