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

Unified Diff: src/compiler/operator.h

Issue 420033003: Fix 64-bit VS2010 build (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « src/compiler/machine-node-factory.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/operator.h
diff --git a/src/compiler/operator.h b/src/compiler/operator.h
index c644ac9fb4141119d111f73d69d7b230dd727f51..4294d344fe9b33ffe949eebea1f01f30ea64d779 100644
--- a/src/compiler/operator.h
+++ b/src/compiler/operator.h
@@ -185,7 +185,9 @@ struct StaticParameterTraits<PrintableUnique<Object> > {
static OStream& PrintTo(OStream& os, PrintableUnique<Object> val) { // NOLINT
return os << val.string();
}
- static int HashCode(PrintableUnique<Object> a) { return a.Hashcode(); }
+ static int HashCode(PrintableUnique<Object> a) {
+ return static_cast<int>(a.Hashcode());
+ }
static bool Equals(PrintableUnique<Object> a, PrintableUnique<Object> b) {
return a == b;
}
@@ -197,7 +199,9 @@ struct StaticParameterTraits<PrintableUnique<Name> > {
static OStream& PrintTo(OStream& os, PrintableUnique<Name> val) { // NOLINT
return os << val.string();
}
- static int HashCode(PrintableUnique<Name> a) { return a.Hashcode(); }
+ static int HashCode(PrintableUnique<Name> a) {
+ return static_cast<int>(a.Hashcode());
+ }
static bool Equals(PrintableUnique<Name> a, PrintableUnique<Name> b) {
return a == b;
}
« no previous file with comments | « src/compiler/machine-node-factory.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698