summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2014-02-16 16:06:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-02-18 23:51:40 (GMT)
commita68a67dea399f15305b059aa36c007cfdde2890e (patch)
treeee2ab832d6f5f88740968573ab03fa28411aea36
parentdf5213b70d29e65aaff17d2577e42787e5a272bb (diff)
downloadgit-a68a67dea399f15305b059aa36c007cfdde2890e.zip
git-a68a67dea399f15305b059aa36c007cfdde2890e.tar.gz
git-a68a67dea399f15305b059aa36c007cfdde2890e.tar.bz2
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 <john@keeping.me.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--utf8.c4
1 files 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)