From 25e74becb5dc8b6b22540929dfc3e740b4c4d645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 17 Oct 2014 12:22:19 +0000 Subject: [PATCH] sf#247 comparison between signed and unsigned --- hyphen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyphen.c b/hyphen.c index 2c11c7b..79dc072 100644 --- a/hyphen.c +++ b/hyphen.c @@ -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++;