Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
utf8: use correct type for values in interval table
author
John Keeping
<john@keeping.me.uk>
Sun, 16 Feb 2014 16:06:04 +0000
(16:06 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 18 Feb 2014 23:51:40 +0000
(15:51 -0800)
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>
utf8.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
df5213b
)
diff --git
a/utf8.c
b/utf8.c
index 24c3c5cedd0903193b79ecf714fd3a2583b880ab..a831d5089908df61574119b01a29a1991196f63a 100644
(file)
--- 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 {
-
in
t first;
-
in
t last;
+
ucs_char_
t first;
+
ucs_char_
t last;
};
size_t display_mode_esc_sequence_len(const char *s)