]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Issue 320: Rewrite (again) to avoid the left shift that CLang dislikes so much.
authorTim Kientzle <kientzle@acm.org>
Sat, 7 Dec 2013 22:51:26 +0000 (14:51 -0800)
committerTim Kientzle <kientzle@acm.org>
Sat, 7 Dec 2013 22:51:26 +0000 (14:51 -0800)
commit6cf33c9307bbf5827df9500750e59a35b6f2d5d3
treed3b6e0a284d69834dbbd89955fa4be73da6aa677
parent5422a51ff294c58173338073ea400e71935350bb
Issue 320:  Rewrite (again) to avoid the left shift that CLang dislikes so much.

This version simulates 2s-complement arithmetic on an
unsigned value, then casts it to signed at the end.
libarchive/archive_read_support_format_tar.c