summaryrefslogtreecommitdiff
path: root/unittests/Support
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2015-12-18 00:18:18 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2015-12-18 00:18:18 +0000
commitce00641ac5f4ca2a073b732a75169037a2d9bef0 (patch)
treec3d69d342413703a3d881383e0d90e0e7a49ae13 /unittests/Support
parenta07559388f91638e61051a1b4b320b5962f29bef (diff)
BranchProbabilityTest.cpp: Suppress warnings. [-Wsign-compare]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support')
-rw-r--r--unittests/Support/BranchProbabilityTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/Support/BranchProbabilityTest.cpp b/unittests/Support/BranchProbabilityTest.cpp
index e90e7f8ff11..f03b09b66e8 100644
--- a/unittests/Support/BranchProbabilityTest.cpp
+++ b/unittests/Support/BranchProbabilityTest.cpp
@@ -326,14 +326,14 @@ TEST(BranchProbabilityTest, NormalizeProbabilities) {
{
SmallVector<BranchProbability, 2> Probs{{0, 1}, UnknownProb};
BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
- EXPECT_EQ(0, Probs[0].getNumerator());
+ EXPECT_EQ(0U, Probs[0].getNumerator());
EXPECT_EQ(BranchProbability::getDenominator(), Probs[1].getNumerator());
}
{
SmallVector<BranchProbability, 2> Probs{{1, 1}, UnknownProb};
BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
EXPECT_EQ(BranchProbability::getDenominator(), Probs[0].getNumerator());
- EXPECT_EQ(0, Probs[1].getNumerator());
+ EXPECT_EQ(0U, Probs[1].getNumerator());
}
{
SmallVector<BranchProbability, 2> Probs{{1, 2}, UnknownProb};
@@ -351,7 +351,7 @@ TEST(BranchProbabilityTest, NormalizeProbabilities) {
Probs[1].getNumerator());
EXPECT_EQ(BranchProbability::getDenominator() / 3 + 1,
Probs[2].getNumerator());
- EXPECT_EQ(0, Probs[3].getNumerator());
+ EXPECT_EQ(0U, Probs[3].getNumerator());
}
}