aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-02 17:16:06 +0000
committerYang Tse <yangsita@gmail.com>2007-02-02 17:16:06 +0000
commitc26ec47e907e3707bdc94f116c0fcb2ba10fdb8c (patch)
treeadb1b68a0969dcad53533ce38b0477f650ca30f3 /src
parent8337a375dd5bbe6b1dab4b711a5fdbc1664cb298 (diff)
compiler warning fix
Diffstat (limited to 'src')
-rw-r--r--src/urlglob.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/urlglob.c b/src/urlglob.c
index 214c5c984..4dbd2ba2c 100644
--- a/src/urlglob.c
+++ b/src/urlglob.c
@@ -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;