]> granicus.if.org Git - python/commitdiff
fix confusing argument name in unicodeobject.c (GH-12653)
authorMax Bernstein <tekknolagi@users.noreply.github.com>
Tue, 2 Apr 2019 08:16:22 +0000 (01:16 -0700)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 2 Apr 2019 08:16:22 +0000 (01:16 -0700)
Objects/exceptions.c

index ad2a54a2b6b05b992f488e6af2fc434ec7a27348..b40ecb78d456ef5aba76d251f3c910985c97e3a9 100644 (file)
@@ -1765,9 +1765,9 @@ PyUnicodeDecodeError_GetEnd(PyObject *exc, Py_ssize_t *end)
 
 
 int
-PyUnicodeTranslateError_GetEnd(PyObject *exc, Py_ssize_t *start)
+PyUnicodeTranslateError_GetEnd(PyObject *exc, Py_ssize_t *end)
 {
-    return PyUnicodeEncodeError_GetEnd(exc, start);
+    return PyUnicodeEncodeError_GetEnd(exc, end);
 }