diff Objects/unicodeobject.c @ 72499:9d06a9408ca3

Oops, fix Py_MIN/Py_MAX case
author Victor Stinner <victor.stinner@haypocalc.com>
date Wed, 28 Sep 2011 22:17:19 +0200
parents e395f1436fe6
children 347fb9006c6f
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Wed Sep 28 22:15:37 2011 +0200
+++ b/Objects/unicodeobject.c	Wed Sep 28 22:17:19 2011 +0200
@@ -622,7 +622,7 @@
     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 @@
         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(