summaryrefslogtreecommitdiffstats
path: root/Modules/arraymodule.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2011-06-07 03:20:36 (GMT)
committerBrett Cannon <brett@python.org>2011-06-07 03:20:36 (GMT)
commita0b1ff58447d27a4ab8f830f9ef69c75c70738e8 (patch)
tree8e184342569db3c2bf24cb36487b63eede3b2bb9 /Modules/arraymodule.c
parentc5011fe22784aa76d72575c74fe9f6b32f5632ce (diff)
downloadcpython-a0b1ff58447d27a4ab8f830f9ef69c75c70738e8.zip
cpython-a0b1ff58447d27a4ab8f830f9ef69c75c70738e8.tar.gz
cpython-a0b1ff58447d27a4ab8f830f9ef69c75c70738e8.tar.bz2
Remove some extraneous parentheses and swap the comparison order to
prevent accidental assignment. Silences a warning from LLVM/clang 2.9.
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r--Modules/arraymodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index 533f404..38ae5c7 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -2091,7 +2091,7 @@ array_repr(arrayobject *a)
if (len == 0) {
return PyUnicode_FromFormat("array('%c')", (int)typecode);
}
- if ((typecode == 'u'))
+ if ('u' == typecode)
v = array_tounicode(a, NULL);
else
v = array_tolist(a, NULL);