From 152c9234d18ab7e7b99f51f9f064547fc6273c5f Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Thu, 4 Jun 2020 16:59:17 +0200 Subject: [PATCH] isint_w should use long literals cut&paste from isint apparently forgot that --- libarchive/archive_acl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libarchive/archive_acl.c b/libarchive/archive_acl.c index 952e20df4..41bb31f6e 100644 --- a/libarchive/archive_acl.c +++ b/libarchive/archive_acl.c @@ -1402,14 +1402,14 @@ isint_w(const wchar_t *start, const wchar_t *end, int *result) if (start >= end) return (0); while (start < end) { - if (*start < '0' || *start > '9') + if (*start < L'0' || *start > L'9') return (0); if (n > (INT_MAX / 10) || - (n == INT_MAX / 10 && (*start - '0') > INT_MAX % 10)) { + (n == INT_MAX / 10 && (*start - L'0') > INT_MAX % 10)) { n = INT_MAX; } else { n *= 10; - n += *start - '0'; + n += *start - L'0'; } start++; } -- 2.47.2