Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c67983b commit ea1cf87Copy full SHA for ea1cf87
1 file changed
Objects/unicodeobject.c
@@ -14213,11 +14213,12 @@ formatchar(PyObject *v)
14213
if (iobj == NULL) {
14214
goto onError;
14215
}
14216
- v = iobj;
+ x = PyLong_AsLong(iobj);
14217
Py_DECREF(iobj);
14218
14219
- /* Integer input truncated to a character */
14220
- x = PyLong_AsLong(v);
+ else {
+ x = PyLong_AsLong(v);
14221
+ }
14222
if (x == -1 && PyErr_Occurred())
14223
14224
0 commit comments