[3.8] bpo-3832: Fix compiler warnings (GH-16518) · python/cpython@bfe1f74 (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -2664,7 +2664,6 @@ task_step_impl(TaskObj *task, PyObject *exc)
2664 2664 /* Some other exception; pop it and call Task.set_exception() */
2665 2665 PyErr_Fetch(&et, &ev, &tb);
2666 2666
2667 -set_exception:
2668 2667 assert(et);
2669 2668 if (!ev |
2670 2669 PyErr_NormalizeException(&et, &ev, &tb);
Original file line number Diff line number Diff line change
@@ -701,7 +701,7 @@ PyCStructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct
701 701 assert(actual_type_index <= MAX_ELEMENTS);
702 702 }
703 703 else {
704 -int length = dict->length;
704 +Py_ssize_t length = dict->length;
705 705 StgDictObject *edict;
706 706
707 707 edict = PyType_stgdict(dict->proto);