Fix a few more conversion warnings on 4.0

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82232 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-09-18 17:48:05 +00:00
parent 0674f4b44b
commit 393317975c

View File

@ -175,11 +175,11 @@ TEST(APIntTest, fromString) {
EXPECT_EQ(APInt(32, 3), APInt(32, "+11", 2));
EXPECT_EQ(APInt(32, 4), APInt(32, "+100", 2));
EXPECT_EQ(APInt(32, -0LL), APInt(32, "-0", 2));
EXPECT_EQ(APInt(32, -1LL), APInt(32, "-1", 2));
EXPECT_EQ(APInt(32, -2LL), APInt(32, "-10", 2));
EXPECT_EQ(APInt(32, -3LL), APInt(32, "-11", 2));
EXPECT_EQ(APInt(32, -4LL), APInt(32, "-100", 2));
EXPECT_EQ(APInt(32, uint64_t(-0LL)), APInt(32, "-0", 2));
EXPECT_EQ(APInt(32, uint64_t(-1LL)), APInt(32, "-1", 2));
EXPECT_EQ(APInt(32, uint64_t(-2LL)), APInt(32, "-10", 2));
EXPECT_EQ(APInt(32, uint64_t(-3LL)), APInt(32, "-11", 2));
EXPECT_EQ(APInt(32, uint64_t(-4LL)), APInt(32, "-100", 2));
EXPECT_EQ(APInt(32, 0), APInt(32, "0", 8));