From f5c3f2256ff4090c1d4a7d023c327eaed335ec27 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 2 Oct 2007 20:52:18 +0000 Subject: From Craig Silverstein: avoid some signed/unsigned warnings from gcc 4.2. --- gold/archive.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gold/archive.cc') diff --git a/gold/archive.cc b/gold/archive.cc index bbd24c8..d80718d 100644 --- a/gold/archive.cc +++ b/gold/archive.cc @@ -334,7 +334,7 @@ Archive::include_all_members(Symbol_table* symtab, Layout* layout, off_t filesize = this->input_file_->file().filesize(); while (true) { - if (filesize - off < sizeof(Archive_header)) + if (filesize - off < static_cast(sizeof(Archive_header))) { if (filesize != off) { @@ -381,7 +381,7 @@ Archive::include_member(Symbol_table* symtab, Layout* layout, std::string n; this->read_header(off, &n); - size_t memoff = off + sizeof(Archive_header); + const off_t memoff = off + static_cast(sizeof(Archive_header)); // Read enough of the file to pick up the entire ELF header. unsigned char ehdr_buf[elfcpp::Elf_sizes<64>::ehdr_size]; -- cgit v1.1