aboutsummaryrefslogtreecommitdiffstats
path: root/unittests
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
commitccbdeb39a7c7ec7dd8bc06e5e8cdee9bc7c33a73 (patch)
treefa1b3d3f0e1b998ba91f6a0be9974379dbff89d6 /unittests
parent33823580383d38c8168edb791370875a6bab4b6e (diff)
downloadexternal_llvm-ccbdeb39a7c7ec7dd8bc06e5e8cdee9bc7c33a73.zip
external_llvm-ccbdeb39a7c7ec7dd8bc06e5e8cdee9bc7c33a73.tar.gz
external_llvm-ccbdeb39a7c7ec7dd8bc06e5e8cdee9bc7c33a73.tar.bz2
fix unittest on platforms with unsigned chars (e.g. linux-ppc)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ADT/TwineTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/ADT/TwineTest.cpp b/unittests/ADT/TwineTest.cpp
index dae5fa0..2f87476 100644
--- a/unittests/ADT/TwineTest.cpp
+++ b/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());