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

Unified Diff: runtime/vm/dart_api_impl_test.cc

Issue 2664993002: Fix Mac IA32 build breakage (Closed)
Patch Set: Created 3 years, 11 months 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: runtime/vm/dart_api_impl_test.cc
diff --git a/runtime/vm/dart_api_impl_test.cc b/runtime/vm/dart_api_impl_test.cc
index 85f1fbbd70a2887ec38e19726b413399d11be663..fb8c433d118b8810c09b03414d25c8b5241250aa 100644
--- a/runtime/vm/dart_api_impl_test.cc
+++ b/runtime/vm/dart_api_impl_test.cc
@@ -7160,7 +7160,7 @@ void NewNativePort_send123(Dart_Port dest_port_id,
// Check peer validity.
EXPECT_NOTNULL(peer);
- EXPECT_EQ(0xDEADBEEF, *static_cast<intptr_t*>(peer));
+ EXPECT_EQ(static_cast<intptr_t>(0xDEADBEEF), *static_cast<intptr_t*>(peer));
Florian Schneider 2017/01/30 22:13:23 I think the l-suffix should work, but have not con
*static_cast<intptr_t*>(peer) = 123;
// Post integer value.
@@ -7183,7 +7183,7 @@ void NewNativePort_send321(Dart_Port dest_port_id,
// Check peer validity.
EXPECT_NOTNULL(peer);
- EXPECT_EQ(0xDEADBEEF, *static_cast<intptr_t*>(peer));
+ EXPECT_EQ(static_cast<intptr_t>(0xDEADBEEF), *static_cast<intptr_t*>(peer));
*static_cast<intptr_t*>(peer) = 321;
// Post integer value.
« 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