From: Michihiro NAKAJIMA Date: Sat, 18 Feb 2012 07:23:36 +0000 (+0900) Subject: Correct a variable type. X-Git-Tag: v3.0.4~2^2~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=276ca2c12f64fb74d40df08ae5b8117b45cc8e18;p=thirdparty%2Flibarchive.git Correct a variable type. --- diff --git a/libarchive/archive_pathmatch.c b/libarchive/archive_pathmatch.c index 0e2b72ef6..505252a18 100644 --- a/libarchive/archive_pathmatch.c +++ b/libarchive/archive_pathmatch.c @@ -125,7 +125,7 @@ pm_list_w(const wchar_t *start, const wchar_t *end, const wchar_t c, int flags) if (*p == c) return (match); } else { - char rangeEnd = *++p; + wchar_t rangeEnd = *++p; if (rangeEnd == L'\\') rangeEnd = *++p; if ((rangeStart <= c) && (c <= rangeEnd))