svn commit: r191586 - head/lib/libarchive
peterjeremy at optushome.com.au
peterjeremy at optushome.com.au
Wed Apr 29 19:55:00 UTC 2009
On 2009-Apr-27 19:14:43 +0000, Tim Kientzle <kientzle at freebsd.org> wrote:
> ino_t varies across platforms; casting (int) here avoids
> various pointless complaints.
...
>+ if ((int)archive_entry_ino(entry) > 0777777) {
But if ino_t is larger than int then truncating it to int will lead
to false negatives here. I don't believe there are any systems where
ino_t is smaller than int so maybe cast the constant to (ino_t) instead.
--
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20090429/a7dee4da/attachment.pgp
More information about the svn-src-head
mailing list