From c26ec47e907e3707bdc94f116c0fcb2ba10fdb8c Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 2 Feb 2007 17:16:06 +0000 Subject: compiler warning fix --- src/urlglob.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3