From a6d0436b97956085b76e1e46eff80eaa2fea745a Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 29 Jul 2009 16:48:32 +0000 Subject: [PATCH] fix unittest on platforms with unsigned chars (e.g. linux-ppc) llvm-svn: 77471 --- llvm/unittests/ADT/TwineTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/unittests/ADT/TwineTest.cpp b/llvm/unittests/ADT/TwineTest.cpp index dae5fa02a1a9..2f874769507e 100644 --- a/llvm/unittests/ADT/TwineTest.cpp +++ b/llvm/unittests/ADT/TwineTest.cpp @@ -36,7 +36,7 @@ TEST(TwineTest, Numbers) { EXPECT_EQ("123", Twine::utostr(123).str()); EXPECT_EQ("-123", Twine::itostr(-123).str()); EXPECT_EQ("123", Twine::utostr((char) 123).str()); - EXPECT_EQ("-123", Twine::itostr((char) -123).str()); + EXPECT_EQ("-123", Twine::itostr((signed char) -123).str()); EXPECT_EQ("7B", Twine::utohexstr(123).str()); EXPECT_EQ("FFFFFFFFFFFFFF85", Twine::itohexstr(-123).str());