mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Silence GCC warning.
The code was correct, but GCC is not enough clever.
This commit is contained in:
parent
55b196a1e4
commit
208bbd29d3
1 changed files with 2 additions and 2 deletions
|
@ -2646,14 +2646,12 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
|
||||||
_build_map_unpack: {
|
_build_map_unpack: {
|
||||||
int with_call = opcode == BUILD_MAP_UNPACK_WITH_CALL;
|
int with_call = opcode == BUILD_MAP_UNPACK_WITH_CALL;
|
||||||
int num_maps;
|
int num_maps;
|
||||||
int function_location;
|
|
||||||
int i;
|
int i;
|
||||||
PyObject *sum = PyDict_New();
|
PyObject *sum = PyDict_New();
|
||||||
if (sum == NULL)
|
if (sum == NULL)
|
||||||
goto error;
|
goto error;
|
||||||
if (with_call) {
|
if (with_call) {
|
||||||
num_maps = oparg & 0xff;
|
num_maps = oparg & 0xff;
|
||||||
function_location = (oparg>>8) & 0xff;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
num_maps = oparg;
|
num_maps = oparg;
|
||||||
|
@ -2666,6 +2664,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
|
||||||
|
|
||||||
if (intersection == NULL) {
|
if (intersection == NULL) {
|
||||||
if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
|
if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
|
||||||
|
int function_location = (oparg>>8) & 0xff;
|
||||||
PyObject *func = (
|
PyObject *func = (
|
||||||
PEEK(function_location + num_maps));
|
PEEK(function_location + num_maps));
|
||||||
PyErr_Format(PyExc_TypeError,
|
PyErr_Format(PyExc_TypeError,
|
||||||
|
@ -2682,6 +2681,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
|
||||||
if (PySet_GET_SIZE(intersection)) {
|
if (PySet_GET_SIZE(intersection)) {
|
||||||
Py_ssize_t idx = 0;
|
Py_ssize_t idx = 0;
|
||||||
PyObject *key;
|
PyObject *key;
|
||||||
|
int function_location = (oparg>>8) & 0xff;
|
||||||
PyObject *func = PEEK(function_location + num_maps);
|
PyObject *func = PEEK(function_location + num_maps);
|
||||||
Py_hash_t hash;
|
Py_hash_t hash;
|
||||||
_PySet_NextEntry(intersection, &idx, &key, &hash);
|
_PySet_NextEntry(intersection, &idx, &key, &hash);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue