diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-12 00:13:39 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-12 00:13:39 +0000 |
commit | 03df6b3280ebb27727d756df645038a65ca34744 (patch) | |
tree | 8926a028125b2684a48c1962dc2b1fbf74408b19 /gold/testsuite | |
parent | 475a2301db23da20a59a59814f8b1a9eebce7855 (diff) | |
download | gdb-03df6b3280ebb27727d756df645038a65ca34744.zip gdb-03df6b3280ebb27727d756df645038a65ca34744.tar.gz gdb-03df6b3280ebb27727d756df645038a65ca34744.tar.bz2 |
Fix precedence error, avoid signed/unsignd warning.
Diffstat (limited to 'gold/testsuite')
-rw-r--r-- | gold/testsuite/binary_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/testsuite/binary_unittest.cc b/gold/testsuite/binary_unittest.cc index 0be2478..ea2535b 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 |