From: H.J. Lu Date: Sat, 4 Apr 2015 14:52:55 +0000 (-0700) Subject: Replace uncompressed_size_buffer with compressed_size_buffer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=906bacc0eaac3681a7d6da1bde73dcef7fd3ade7;p=binutils-gdb.git Replace uncompressed_size_buffer with compressed_size_buffer --- diff --git a/bfd/compress.c b/bfd/compress.c index 6621dffb279..56d49fe30b6 100644 --- a/bfd/compress.c +++ b/bfd/compress.c @@ -60,23 +60,23 @@ decompress_contents (bfd_byte *compressed_buffer, } static bfd_size_type -get_uncompressed_size (bfd_byte *uncompressed_size_buffer) +get_uncompressed_size (bfd_byte *compressed_size_buffer) { - bfd_size_type uncompressed_size = uncompressed_size_buffer[0]; + bfd_size_type uncompressed_size = compressed_size_buffer[0]; uncompressed_size <<= 8; - uncompressed_size += uncompressed_size_buffer[1]; + uncompressed_size += compressed_size_buffer[1]; uncompressed_size <<= 8; - uncompressed_size += uncompressed_size_buffer[2]; + uncompressed_size += compressed_size_buffer[2]; uncompressed_size <<= 8; - uncompressed_size += uncompressed_size_buffer[3]; + uncompressed_size += compressed_size_buffer[3]; uncompressed_size <<= 8; - uncompressed_size += uncompressed_size_buffer[4]; + uncompressed_size += compressed_size_buffer[4]; uncompressed_size <<= 8; - uncompressed_size += uncompressed_size_buffer[5]; + uncompressed_size += compressed_size_buffer[5]; uncompressed_size <<= 8; - uncompressed_size += uncompressed_size_buffer[6]; + uncompressed_size += compressed_size_buffer[6]; uncompressed_size <<= 8; - uncompressed_size += uncompressed_size_buffer[7]; + uncompressed_size += compressed_size_buffer[7]; return uncompressed_size;; }