diff options
author | Brett Cannon <brett@python.org> | 2011-06-07 03:20:36 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2011-06-07 03:20:36 (GMT) |
commit | a0b1ff58447d27a4ab8f830f9ef69c75c70738e8 (patch) | |
tree | 8e184342569db3c2bf24cb36487b63eede3b2bb9 | |
parent | c5011fe22784aa76d72575c74fe9f6b32f5632ce (diff) | |
download | cpython-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.
-rw-r--r-- | Modules/arraymodule.c | 2 |
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); |