]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Oops, fix Py_MIN/Py_MAX case
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 28 Sep 2011 20:17:19 +0000 (22:17 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 28 Sep 2011 20:17:19 +0000 (22:17 +0200)
Objects/unicodeobject.c

index 69f0b8fce9151074fde5c0355e507a3937a31632..b53c210428892d16363ac7b8beb4968b05720a3d 100644 (file)
@@ -622,7 +622,7 @@ PyUnicode_CopyCharacters(PyObject *to, Py_ssize_t to_start,
     if (PyUnicode_READY(to))
         return -1;
 
-    how_many = PY_MIN(PyUnicode_GET_LENGTH(from), how_many);
+    how_many = Py_MIN(PyUnicode_GET_LENGTH(from), how_many);
     if (to_start + how_many > PyUnicode_GET_LENGTH(to)) {
         PyErr_Format(PyExc_ValueError,
                      "Cannot write %zi characters at %zi "
@@ -9472,7 +9472,7 @@ PyUnicode_Concat(PyObject *left, PyObject *right)
         goto onError;
 
     maxchar = PyUnicode_MAX_CHAR_VALUE(u);
-    maxchar = PY_MAX(maxchar, PyUnicode_MAX_CHAR_VALUE(v));
+    maxchar = Py_MAX(maxchar, PyUnicode_MAX_CHAR_VALUE(v));
 
     /* Concat the two Unicode strings */
     w = PyUnicode_New(