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

Unified Diff: src/serialize.h

Issue 656793005: Fix compile errors in r24826. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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/serialize.h
diff --git a/src/serialize.h b/src/serialize.h
index 6cc3cf497b37c68780d493cb5103a91180de8d2d..de2ef2b47a40183e48fca7bc15853894ff81c974 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -146,7 +146,7 @@ class AddressMapBase {
}
static uint32_t GetValue(HashMap::Entry* entry) {
- return reinterpret_cast<uint32_t>(entry->value);
+ return static_cast<uint32_t>(reinterpret_cast<intptr_t>(entry->value));
Benedikt Meurer 2014/10/23 08:58:08 Why not just return reinterpret_cast<uintptr_t>
}
static HashMap::Entry* LookupEntry(HashMap* map, HeapObject* obj,
« 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