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

Unified Diff: src/types.cc

Issue 18899003: Use static_cast instead of reinterpret_cast (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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: src/types.cc
diff --git a/src/types.cc b/src/types.cc
index e88f9f67c59aa5087894b124cf1e12fbc8be5022..ff96b5a0d53fee65e5e9e6eeca2623d4eab372ff 100644
--- a/src/types.cc
+++ b/src/types.cc
@@ -515,9 +515,9 @@ void Type::TypePrint(FILE* out) {
}
PrintF(out, "}");
} else if (is_constant()) {
- PrintF(out, "Constant(%p)", reinterpret_cast<void*>(*as_constant()));
+ PrintF(out, "Constant(%p)", static_cast<void*>(*as_constant()));
} else if (is_class()) {
- PrintF(out, "Class(%p)", reinterpret_cast<void*>(*as_class()));
+ PrintF(out, "Class(%p)", static_cast<void*>(*as_class()));
} else if (is_union()) {
PrintF(out, "{");
Handle<Unioned> unioned = as_union();
« 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