Index: src/profile-generator.cc |
diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
index 945bdd6cc12f5ea883ea6a30a12c24f938b81de2..abcccbdc176d3b1b19fb27b179a84ba364de94c7 100644 |
--- a/src/profile-generator.cc |
+++ b/src/profile-generator.cc |
@@ -628,7 +628,7 @@ void ProfileGenerator::RecordTickSample(const TickSample& sample) { |
} |
} |
- for (const Address* stack_pos = sample.stack, |
+ for (const Address* stack_pos = reinterpret_cast<const Address*>(sample.stack), |
Sven Panne
2014/09/02 08:15:02
static_cast again, the const seems to be unnecessa
gholap
2014/09/02 08:56:08
Hmm... that should work for individual pointers, r
Sven Panne
2014/09/02 11:15:36
Done correctly, it *would* work, but actually ther
gholap
2014/09/02 14:43:11
Done. I know where I went wrong! I took my working
|
*stack_end = stack_pos + sample.frames_count; |
stack_pos != stack_end; |
++stack_pos) { |