From a68a67dea399f15305b059aa36c007cfdde2890e Mon Sep 17 00:00:00 2001 From: John Keeping Date: Sun, 16 Feb 2014 16:06:04 +0000 Subject: utf8: use correct type for values in interval table 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 Signed-off-by: Junio C Hamano --- utf8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utf8.c') diff --git a/utf8.c b/utf8.c index 24c3c5cedd..a831d50899 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) -- cgit v1.2.3