Author: Maciej Fijalkowski <[email protected]>
Branch: vmprof
Changeset: r76725:6cf070128449
Date: 2015-04-06 15:45 +0200
http://bitbucket.org/pypy/pypy/changeset/6cf070128449/
Log: more like that
diff --git a/pypy/module/_vmprof/src/get_custom_offset.c
b/pypy/module/_vmprof/src/get_custom_offset.c
--- a/pypy/module/_vmprof/src/get_custom_offset.c
+++ b/pypy/module/_vmprof/src/get_custom_offset.c
@@ -51,9 +51,6 @@
// we strip the topmost part - the reason is that it's either
// represented in the jitted caller or it's not jitted (we have the
// same function essentially twice
- if (n != max_depth) {
- n--;
- }
k = 0;
while (k < (n - start) / 2) {
tmp = result[start + k];
@@ -61,5 +58,8 @@
result[n - k - 1] = tmp;
k++;
}
+ if (n != max_depth) {
+ n--;
+ }
return n;
}
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit