diff options
author | Marc Espie <espie@nerim.net> | 2020-06-04 16:59:17 +0200 |
---|---|---|
committer | Marc Espie <espie@nerim.net> | 2020-06-04 16:59:17 +0200 |
commit | 152c9234d18ab7e7b99f51f9f064547fc6273c5f (patch) | |
tree | a1b6b5070e93b8941794be3a676f029b1516b807 /libarchive/archive_acl.c | |
parent | 9026d6ca3e8e685892779cccf687c0bf140de1a2 (diff) | |
download | libarchive-152c9234d18ab7e7b99f51f9f064547fc6273c5f.tar.gz |
isint_w should use long literals
cut&paste from isint apparently forgot that
Diffstat (limited to 'libarchive/archive_acl.c')
-rw-r--r-- | libarchive/archive_acl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libarchive/archive_acl.c b/libarchive/archive_acl.c index 952e20df..41bb31f6 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++; } |