diff options
author | anonymous <local@localhost> | 2010-09-17 21:59:53 +0000 |
---|---|---|
committer | anonymous <local@localhost> | 2010-09-17 21:59:53 +0000 |
commit | de57889786ea4bb7ab2be1c5a661d479b169b1a2 (patch) | |
tree | af3c7377d0bcdd767053a4dfdf5bbcc0bf81198e | |
parent | 5128c9eadc8c3756c2873caa6931674f4c74e52a (diff) | |
download | libcxxrt-de57889786ea4bb7ab2be1c5a661d479b169b1a2.tar.gz libcxxrt-de57889786ea4bb7ab2be1c5a661d479b169b1a2.tar.bz2 libcxxrt-de57889786ea4bb7ab2be1c5a661d479b169b1a2.tar.xz |
Fixed minor compiler warnings.
-rw-r--r-- | src/dwarf_eh.h | 2 | ||||
-rw-r--r-- | src/exception.cc | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/dwarf_eh.h b/src/dwarf_eh.h index 02b9db9..8acc2a1 100644 --- a/src/dwarf_eh.h +++ b/src/dwarf_eh.h @@ -125,7 +125,7 @@ static int64_t read_sleb128(unsigned char** data) // Read as if it's signed uint64_t uleb = read_leb128(data, &bits); // If the most significant bit read is 1, then we need to sign extend it - if (uleb >> bits-1 == 1) + if ((uleb >> (bits-1)) == 1) { // Sign extend by setting all bits in front of it to 1 uleb |= ((int64_t)-1) << bits; diff --git a/src/exception.cc b/src/exception.cc index ada0c3a..356fd2d 100644 --- a/src/exception.cc +++ b/src/exception.cc @@ -844,6 +844,8 @@ extern "C" void __cxa_call_unexpected(void*exception) } } std::unexpected(); + // Should not be reached. + abort(); } namespace std |