mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Fix -Woverflow warning in unittest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231368 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f8b3003ab8
commit
2699722064
@ -97,7 +97,7 @@ TEST(DWARFFormValue, SignedConstantForms) {
|
||||
// Check that we can handle big positive values, but that we return
|
||||
// an error just over the limit.
|
||||
auto UMax = createULEBFormValue(LLONG_MAX);
|
||||
auto TooBig = createULEBFormValue(LLONG_MAX + 1);
|
||||
auto TooBig = createULEBFormValue(uint64_t(LLONG_MAX) + 1);
|
||||
EXPECT_EQ(UMax.getAsSignedConstant().getValue(), LLONG_MAX);
|
||||
EXPECT_EQ(TooBig.getAsSignedConstant().hasValue(), false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user