diff options
author | Daniel Mack <github@zonque.org> | 2015-11-02 10:57:38 +0100 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-11-02 10:57:38 +0100 |
commit | 86b4428a58739a3899f0d2cee5bf78ba861d16b7 (patch) | |
tree | 62b24c733d65866a8302114cc3440d4ee3ca2097 /src/basic/string-util.c | |
parent | 8fa7cf70764319982e6617413cd0e287f6e35447 (diff) | |
parent | 025b4c410577a10692c608e7dbad712655abb858 (diff) |
Merge pull request #1740 from shawnl/master
utf8.[ch]: use char32_t and char16_t instead of int, int32_t, int16_t
Diffstat (limited to 'src/basic/string-util.c')
-rw-r--r-- | src/basic/string-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/string-util.c b/src/basic/string-util.c index 63b9b79df9..4583a3ce2e 100644 --- a/src/basic/string-util.c +++ b/src/basic/string-util.c @@ -413,7 +413,7 @@ char *ellipsize_mem(const char *s, size_t old_length, size_t new_length, unsigne k = 0; for (i = s; k < x && i < s + old_length; i = utf8_next_char(i)) { - int c; + char32_t c; c = utf8_encoded_to_unichar(i); if (c < 0) @@ -425,7 +425,7 @@ char *ellipsize_mem(const char *s, size_t old_length, size_t new_length, unsigne x ++; for (j = s + old_length; k < new_length && j > i; ) { - int c; + char32_t c; j = utf8_prev_char(j); c = utf8_encoded_to_unichar(j); |