aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/test/test_read_format_mtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/test/test_read_format_mtree.c')
-rw-r--r--libarchive/test/test_read_format_mtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/test/test_read_format_mtree.c b/libarchive/test/test_read_format_mtree.c
index a8342f55790e..8576d579f9c6 100644
--- a/libarchive/test/test_read_format_mtree.c
+++ b/libarchive/test/test_read_format_mtree.c
@@ -183,7 +183,7 @@ test_read_format_mtree1(void)
min_time = archive_entry_mtime(ae);
assert(min_time <= 0);
/* Simply asserting min_time - 1 > 0 breaks with some compiler optimizations. */
- t = min_time - 1;
+ t = (time_t)((uintmax_t)min_time - 1);
assert(t > 0);
assertEqualInt(archive_entry_is_encrypted(ae), 0);
assertEqualIntA(a, archive_read_has_encrypted_entries(a), ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED);