From: Ian Lance Taylor Date: Tue, 12 Feb 2008 00:13:39 +0000 (+0000) Subject: Fix precedence error, avoid signed/unsignd warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03df6b3280ebb27727d756df645038a65ca34744;p=binutils-gdb.git Fix precedence error, avoid signed/unsignd warning. --- diff --git a/gold/testsuite/binary_unittest.cc b/gold/testsuite/binary_unittest.cc index 0be2478a8bf..ea2535b556d 100644 --- a/gold/testsuite/binary_unittest.cc +++ b/gold/testsuite/binary_unittest.cc @@ -76,10 +76,10 @@ Sized_binary_test(Target* target) CHECK(object->target() == target); CHECK(object->shnum() == 5); CHECK(object->section_name(1) == ".data"); - CHECK(object->section_flags(1) == elfcpp::SHF_ALLOC | elfcpp::SHF_WRITE); + CHECK(object->section_flags(1) == (elfcpp::SHF_ALLOC | elfcpp::SHF_WRITE)); section_size_type len; const unsigned char* contents = object->section_contents(1, &len, false); - CHECK(len == st.st_size); + CHECK(len == convert_to_section_size_type(st.st_size)); CHECK(memcmp(filedata, contents, len) == 0); // Force the symbols to be read internally, so that