aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/TwineTest.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-07-29 16:48:32 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-07-29 16:48:32 +0000
commita6d0436b97956085b76e1e46eff80eaa2fea745a (patch)
tree5559f473ca18dabceee46c5fb8610af0aa06be63 /llvm/unittests/ADT/TwineTest.cpp
parentb5a5de291d740670af6cae5100ce507c972b8115 (diff)
downloadllvm-a6d0436b97956085b76e1e46eff80eaa2fea745a.zip
llvm-a6d0436b97956085b76e1e46eff80eaa2fea745a.tar.gz
llvm-a6d0436b97956085b76e1e46eff80eaa2fea745a.tar.bz2
fix unittest on platforms with unsigned chars (e.g. linux-ppc)
llvm-svn: 77471
Diffstat (limited to 'llvm/unittests/ADT/TwineTest.cpp')
-rw-r--r--llvm/unittests/ADT/TwineTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ADT/TwineTest.cpp b/llvm/unittests/ADT/TwineTest.cpp
index dae5fa0..2f87476 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());