diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-07-29 16:48:32 +0000 | 
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-07-29 16:48:32 +0000 | 
| commit | a6d0436b97956085b76e1e46eff80eaa2fea745a (patch) | |
| tree | 5559f473ca18dabceee46c5fb8610af0aa06be63 | |
| parent | b5a5de291d740670af6cae5100ce507c972b8115 (diff) | |
| download | bcm5719-llvm-a6d0436b97956085b76e1e46eff80eaa2fea745a.tar.gz bcm5719-llvm-a6d0436b97956085b76e1e46eff80eaa2fea745a.zip  | |
fix unittest on platforms with unsigned chars (e.g. linux-ppc)
llvm-svn: 77471
| -rw-r--r-- | llvm/unittests/ADT/TwineTest.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ADT/TwineTest.cpp b/llvm/unittests/ADT/TwineTest.cpp index dae5fa02a1a..2f874769507 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());  | 

