Skip to content

Commit 25c3d9a

Browse files
authored
Fix compiler nitpicks (libarchive#2470)
1 parent 982747f commit 25c3d9a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cpio/test/test_option_c.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ is_octal(const char *p, size_t l)
1818
return (1);
1919
}
2020

21-
static long long int
21+
static unsigned long long int
2222
from_octal(const char *p, size_t l)
2323
{
2424
long long int r = 0;
@@ -133,7 +133,7 @@ DEFINE_TEST(test_option_c)
133133
assert(is_octal(e, 76)); /* Entire header is octal digits. */
134134
assertEqualMem(e + 0, "070707", 6); /* Magic */
135135
assertEqualInt(dev, from_octal(e + 6, 6)); /* dev */
136-
assert(ino != from_octal(e + 12, 6)); /* ino */
136+
assert(ino != (int)from_octal(e + 12, 6)); /* ino */
137137
#if !defined(_WIN32) || defined(__CYGWIN__)
138138
/* On Windows, symbolic link and group members bits and
139139
* others bits do not work. */
@@ -163,7 +163,7 @@ DEFINE_TEST(test_option_c)
163163
assertEqualInt(dev, from_octal(e + 6, 6));
164164
/* Ino must be different from first entry. */
165165
assert(is_octal(e + 12, 6)); /* ino */
166-
assert(ino != from_octal(e + 12, 6));
166+
assert(ino != (int)from_octal(e + 12, 6));
167167
#if defined(_WIN32) && !defined(__CYGWIN__)
168168
/* Group members bits and others bits do not work. */
169169
assertEqualMem(e + 18, "040777", 6); /* Mode */

0 commit comments

Comments
 (0)