]> git.saurik.com Git - apt.git/commit
fix FileFd::Size bitswap on big-endian architectures
authorAdam Conrad <adconrad@debian.org>
Sat, 26 Apr 2014 08:24:40 +0000 (10:24 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Sat, 26 Apr 2014 08:47:29 +0000 (10:47 +0200)
commit05eab8afb692823f86c53c4c2ced783a7c185cf9
treee7af1fece550d0777899be6e519adfbdfb36df27
parent062074cb519aa05110d24936d95747c59cc0ffc1
fix FileFd::Size bitswap on big-endian architectures

gzip only gives us 32bit of size, storing it in a 64bit container and
doing a 32bit flip on it has therefore unintended results.
So we just go with a exact size container and let the flipping be handled
by eglibc provided le32toh removing our #ifdef machinery.

Closes: 745866
apt-pkg/contrib/fileutl.cc