| Index: src/heap-snapshot-generator.cc | 
| diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc | 
| index 279880f3afa4725e421d14b4940159a094336575..2d31ca49d1f88118982e487038f470f24bd1f89e 100644 | 
| --- a/src/heap-snapshot-generator.cc | 
| +++ b/src/heap-snapshot-generator.cc | 
| @@ -2698,8 +2698,8 @@ void HeapSnapshotJSONSerializer::SerializeStrings() { | 
| for (HashMap::Entry* entry = strings_.Start(); | 
| entry != NULL; | 
| entry = strings_.Next(entry)) { | 
| -    sorted_strings[reinterpret_cast<uintptr_t>(entry->value)] = | 
| -        reinterpret_cast<const unsigned char*>(entry->key); | 
| +    int index = static_cast<int>(reinterpret_cast<uintptr_t>(entry->value)); | 
| +    sorted_strings[index] = reinterpret_cast<const unsigned char*>(entry->key); | 
| } | 
| writer_->AddString("\"<dummy>\""); | 
| for (int i = 1; i < sorted_strings.length(); ++i) { | 
|  |