Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(568)

Unified Diff: test/cctest/test-reloc-info.cc

Issue 5333007: Fix mac build. (Closed)
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-reloc-info.cc
diff --git a/test/cctest/test-reloc-info.cc b/test/cctest/test-reloc-info.cc
index 12a2594c6312f4c8947174873d1601760fe20de6..2b9beac12bc8d8ce53e71111702219275e7da0c8 100644
--- a/test/cctest/test-reloc-info.cc
+++ b/test/cctest/test-reloc-info.cc
@@ -66,7 +66,7 @@ TEST(Positions) {
if (mode == RelocInfo::POSITION) {
CHECK_EQ(pc, it.rinfo()->pc());
CHECK_EQ(mode, it.rinfo()->rmode());
- CHECK_EQ(static_cast<intptr_t>(pos), it.rinfo()->data());
+ CHECK_EQ(pos, static_cast<int>(it.rinfo()->data()));
it.next();
}
}
@@ -83,7 +83,7 @@ TEST(Positions) {
if (mode == RelocInfo::STATEMENT_POSITION) {
CHECK_EQ(pc, it.rinfo()->pc());
CHECK_EQ(mode, it.rinfo()->rmode());
- CHECK_EQ(static_cast<intptr_t>(pos), it.rinfo()->data());
+ CHECK_EQ(pos, static_cast<int>(it.rinfo()->data()));
it.next();
}
}
@@ -99,7 +99,7 @@ TEST(Positions) {
RelocInfo::STATEMENT_POSITION : RelocInfo::POSITION;
CHECK_EQ(pc, it.rinfo()->pc());
CHECK_EQ(mode, it.rinfo()->rmode());
- CHECK_EQ(static_cast<intptr_t>(pos), it.rinfo()->data());
+ CHECK_EQ(pos, static_cast<int>(it.rinfo()->data()));
it.next();
}
CHECK(it.done());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698