diff options
| author | Caolán McNamara <caolanm@redhat.com> | 2014-10-17 12:22:19 +0000 |
|---|---|---|
| committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-17 12:22:19 +0000 |
| commit | 25e74becb5dc8b6b22540929dfc3e740b4c4d645 (patch) | |
| tree | 438e2ca98ad69800ed74045f0eb7e9311846eab0 | |
| parent | d4cd34b4da17e74c629dbac78e2c6e479bca45f7 (diff) | |
| download | hyphen-25e74becb5dc8b6b22540929dfc3e740b4c4d645.tar.gz | |
sf#247 comparison between signed and unsigned
| -rw-r--r-- | hyphen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -328,7 +328,7 @@ void hnj_hyphen_load_line(char * buf, HyphenDict * dict, HashTab * hashtab) { if (dict->utf8) { int pu = -1; /* unicode character position */ int ps = -1; /* unicode start position (original replindex) */ - int pc = (*word == '.') ? 1: 0; /* 8-bit character position */ + size_t pc = (*word == '.') ? 1: 0; /* 8-bit character position */ for (; pc < (strlen(word) + 1); pc++) { /* beginning of an UTF-8 character (not '10' start bits) */ if ((((unsigned char) word[pc]) >> 6) != 2) pu++; |
