diff options
author | kientzle <kientzle@FreeBSD.org> | 2006-11-24 05:48:04 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2006-11-24 05:48:04 +0000 |
commit | 8aa83b7d19437facedfdf8c9dd0e308978e4342f (patch) | |
tree | 06a33d781507a642e67db2348ff9772afb8d4795 /lib/libarchive/archive_write_set_format_pax.c | |
parent | 45d8c426b56e9c8f5190f88382c7331d0d582a7d (diff) | |
download | FreeBSD-src-8aa83b7d19437facedfdf8c9dd0e308978e4342f.zip FreeBSD-src-8aa83b7d19437facedfdf8c9dd0e308978e4342f.tar.gz |
Fill in a couple of missing casts: clarify one narrowing conversion
and correct the use of unary minus with an unsigned value. (The unary
minus here is actually being used as a bitwise operation, which is
unusual enough to deserve a clarifying cast.)
Diffstat (limited to 'lib/libarchive/archive_write_set_format_pax.c')
-rw-r--r-- | lib/libarchive/archive_write_set_format_pax.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libarchive/archive_write_set_format_pax.c b/lib/libarchive/archive_write_set_format_pax.c index 657a720..c796e85 100644 --- a/lib/libarchive/archive_write_set_format_pax.c +++ b/lib/libarchive/archive_write_set_format_pax.c @@ -805,7 +805,7 @@ archive_write_pax_header(struct archive *a, } pax->entry_bytes_remaining = archive_strlen(&(pax->pax_header)); - pax->entry_padding = 0x1ff & (- pax->entry_bytes_remaining); + pax->entry_padding = 0x1ff & (-(int64_t)pax->entry_bytes_remaining); r = (a->compression_write)(a, pax->pax_header.s, archive_strlen(&(pax->pax_header))); @@ -834,7 +834,7 @@ archive_write_pax_header(struct archive *a, */ archive_entry_set_size(entry_original, archive_entry_size(entry_main)); pax->entry_bytes_remaining = archive_entry_size(entry_main); - pax->entry_padding = 0x1ff & (- pax->entry_bytes_remaining); + pax->entry_padding = 0x1ff & (-(int64_t)pax->entry_bytes_remaining); archive_entry_free(entry_main); return (ret); |