Author: Maciej Fijalkowski <fij...@gmail.com> Branch: vmprof Changeset: r75447:1d07e4257e8c Date: 2015-01-20 10:48 +0200 http://bitbucket.org/pypy/pypy/changeset/1d07e4257e8c/
Log: I should learn a thing or two about pointer arithmetics diff --git a/pypy/module/_vmprof/src/vmprof.c b/pypy/module/_vmprof/src/vmprof.c --- a/pypy/module/_vmprof/src/vmprof.c +++ b/pypy/module/_vmprof/src/vmprof.c @@ -105,7 +105,7 @@ vmprof_hacked_unw_cursor_t *cp2 = (vmprof_hacked_unw_cursor_t*)cp; void* bp = (void*)sp + sp_offset; cp2->sp = bp; - bp -= 1; + bp -= sizeof(void*); cp2->ip = ((void**)bp)[0]; // the ret is on the top of the stack minus WORD return 1; _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit