projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8b3003
)
Fix -Woverflow warning in unittest.
author
Frederic Riss
<friss@apple.com>
Thu, 5 Mar 2015 14:43:15 +0000
(14:43 +0000)
committer
Frederic Riss
<friss@apple.com>
Thu, 5 Mar 2015 14:43:15 +0000
(14:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231368
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp
patch
|
blob
|
history
diff --git
a/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp
b/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp
index be78f116ce459ab0a79f7a4ee79ecf8884a51419..efcfcc0a9dc49ee8639c43bec19703872cfee38d 100644
(file)
--- a/
unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp
+++ b/
unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp
@@
-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);