summaryrefslogtreecommitdiff
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-13 01:12:34 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-13 01:12:34 +0200
commit127226ba6958fbfe69d74220b9bda70af9fdafd8 (patch)
tree6db5b31c65d110f3ad5ccbbdac503ed07b88e9fb /Objects/unicodeobject.c
parent8813104e5340ca4f1a6988b33cc551e009bae16b (diff)
downloadcpython-git-127226ba6958fbfe69d74220b9bda70af9fdafd8.tar.gz
Don't use PyUnicode_MAX_CHAR_VALUE() macro in Py_MAX()
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 5766237ed1..cb03300c62 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -10257,7 +10257,7 @@ PyObject *
PyUnicode_Concat(PyObject *left, PyObject *right)
{
PyObject *u = NULL, *v = NULL, *w;
- Py_UCS4 maxchar;
+ Py_UCS4 maxchar, maxchar2;
/* Coerce the two arguments */
u = PyUnicode_FromObject(left);
@@ -10278,7 +10278,8 @@ PyUnicode_Concat(PyObject *left, PyObject *right)
}
maxchar = PyUnicode_MAX_CHAR_VALUE(u);
- maxchar = Py_MAX(maxchar, PyUnicode_MAX_CHAR_VALUE(v));
+ maxchar2 = PyUnicode_MAX_CHAR_VALUE(v);
+ maxchar = Py_MAX(maxchar, maxchar2);
/* Concat the two Unicode strings */
w = PyUnicode_New(