@@ -116,7 +116,7 @@ int vmp_profiles_python_lines(void) {
116116#ifdef PYPY_JIT_CODEMAP
117117 else if (frame -> kind == VMPROF_JITTED_TAG ) {
118118 intptr_t pc = ((intptr_t * )(frame -> value - sizeof (intptr_t )))[0 ];
119- * depth = vmprof_write_header_for_jit_addr (result , * depth , pc , max_depth );
119+ * depth = vmprof_write_header_for_jit_addr (( intptr_t * ) result , * depth , pc , max_depth );
120120 }
121121#endif
122122
@@ -158,7 +158,7 @@ static PY_STACK_FRAME_T * _write_python_stack_entry(PY_STACK_FRAME_T * frame, vo
158158#ifdef PYPY_JIT_CODEMAP
159159 else if (frame -> kind == VMPROF_JITTED_TAG ) {
160160 intptr_t pc = ((intptr_t * )(frame -> value - sizeof (intptr_t )))[0 ];
161- * depth = vmprof_write_header_for_jit_addr (result , * depth , pc , max_depth );
161+ * depth = vmprof_write_header_for_jit_addr (( intptr_t * ) result , * depth , pc , max_depth );
162162 }
163163#endif
164164
@@ -343,7 +343,7 @@ int vmp_walk_and_record_stack(_PyInterpreterFrame *frame, void ** result,
343343 return vmp_walk_and_record_python_stack_only (frame , result , max_depth , depth , pc );
344344#ifdef PYPY_JIT_CODEMAP
345345 } else if (pypy_find_codemap_at_addr (rip , & start_addr ) != NULL ) {
346- depth = vmprof_write_header_for_jit_addr (result , depth , pc , max_depth );
346+ depth = vmprof_write_header_for_jit_addr (( intptr_t * ) result , depth , pc , max_depth );
347347 return vmp_walk_and_record_python_stack_only (frame , result , max_depth , depth , pc );
348348#endif
349349 } else {
@@ -497,7 +497,7 @@ int vmp_walk_and_record_stack(PY_STACK_FRAME_T *frame, void ** result,
497497 return vmp_walk_and_record_python_stack_only (frame , result , max_depth , depth , pc );
498498#ifdef PYPY_JIT_CODEMAP
499499 } else if (pypy_find_codemap_at_addr (rip , & start_addr ) != NULL ) {
500- depth = vmprof_write_header_for_jit_addr (result , depth , pc , max_depth );
500+ depth = vmprof_write_header_for_jit_addr (( intptr_t * ) result , depth , pc , max_depth );
501501 return vmp_walk_and_record_python_stack_only (frame , result , max_depth , depth , pc );
502502#endif
503503 } else {
0 commit comments