compiler warning fix

This commit is contained in:
Yang Tse
2007-02-02 17:16:06 +00:00
parent 8337a375dd
commit c26ec47e90
4 changed files with 9 additions and 6 deletions

View File

@@ -422,7 +422,8 @@ char *glob_next_url(URLGlob *glob)
}
break;
case UPTCharRange:
pat->content.CharRange.ptr_c += (char)(pat->content.CharRange.step);
pat->content.CharRange.ptr_c = (char)(pat->content.CharRange.step +
(int)((unsigned char)pat->content.CharRange.ptr_c));
if (pat->content.CharRange.ptr_c > pat->content.CharRange.max_c) {
pat->content.CharRange.ptr_c = pat->content.CharRange.min_c;
carry = TRUE;