projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d375f7
)
Replaced POP() with STACKADJ(-1) on lines where the result wasn't used.
author
Raymond Hettinger
<python@rcn.com>
Tue, 14 Jan 2003 12:43:10 +0000
(12:43 +0000)
committer
Raymond Hettinger
<python@rcn.com>
Tue, 14 Jan 2003 12:43:10 +0000
(12:43 +0000)
The two are semantically equivalent, but the first triggered a compiler
warning about an unused variable. Note, the preceding steps had already
accessed and decreffed the variable so the reference counts were fine.
Python/ceval.c
patch
|
blob
|
history
diff --git
a/Python/ceval.c
b/Python/ceval.c
index b23c26a9495213f05eb47993777dcc830ac88560..1fab1cca9e15178941f5fa8dcbb5cae88c78b882 100644
(file)
--- a/
Python/ceval.c
+++ b/
Python/ceval.c
@@
-920,7
+920,7
@@
eval_frame(PyFrameObject *f)
err = 0;
continue;
}
-
POP(
);
+
STACKADJ(-1
);
break;
case UNARY_CONVERT:
@@
-1960,7
+1960,7
@@
eval_frame(PyFrameObject *f)
SET_TOP(x);
continue;
}
-
POP(
);
+
STACKADJ(-1
);
break;
case FOR_ITER: