summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-22 16:59:46 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-22 16:59:46 (GMT)
commit208bbd29d355d98088d43becdd4f9b818f2ac798 (patch)
tree5f35a1b3d7fea4295eda81c9341c430c3d82c214 /Python
parent55b196a1e4015d5ffb748bc23f91052f996f3590 (diff)
downloadcpython-208bbd29d355d98088d43becdd4f9b818f2ac798.zip
cpython-208bbd29d355d98088d43becdd4f9b818f2ac798.tar.gz
cpython-208bbd29d355d98088d43becdd4f9b818f2ac798.tar.bz2
Silence GCC warning.
The code was correct, but GCC is not enough clever.
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 451791c..9f1af78 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2646,14 +2646,12 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
_build_map_unpack: {
int with_call = opcode == BUILD_MAP_UNPACK_WITH_CALL;
int num_maps;
- int function_location;
int i;
PyObject *sum = PyDict_New();
if (sum == NULL)
goto error;
if (with_call) {
num_maps = oparg & 0xff;
- function_location = (oparg>>8) & 0xff;
}
else {
num_maps = oparg;
@@ -2666,6 +2664,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
if (intersection == NULL) {
if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
+ int function_location = (oparg>>8) & 0xff;
PyObject *func = (
PEEK(function_location + num_maps));
PyErr_Format(PyExc_TypeError,
@@ -2682,6 +2681,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
if (PySet_GET_SIZE(intersection)) {
Py_ssize_t idx = 0;
PyObject *key;
+ int function_location = (oparg>>8) & 0xff;
PyObject *func = PEEK(function_location + num_maps);
Py_hash_t hash;
_PySet_NextEntry(intersection, &idx, &key, &hash);