projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9004e8d
)
fix unittest on platforms with unsigned chars (e.g. linux-ppc)
author
Benjamin Kramer
<benny.kra@googlemail.com>
Wed, 29 Jul 2009 16:48:32 +0000
(16:48 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Wed, 29 Jul 2009 16:48:32 +0000
(16:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77471
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/ADT/TwineTest.cpp
patch
|
blob
|
history
diff --git
a/unittests/ADT/TwineTest.cpp
b/unittests/ADT/TwineTest.cpp
index dae5fa02a1a9cf2243c960d79bba44ae36bce89f..2f874769507e24bb0ea22ea8278b754261036904 100644
(file)
--- 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());