commit | a0b1ff58447d27a4ab8f830f9ef69c75c70738e8 | [log] [tgz] |
---|---|---|
author | Brett Cannon <brett@python.org> | Mon Jun 06 20:20:36 2011 -0700 |
committer | Brett Cannon <brett@python.org> | Mon Jun 06 20:20:36 2011 -0700 |
tree | 8e184342569db3c2bf24cb36487b63eede3b2bb9 | |
parent | c5011fe22784aa76d72575c74fe9f6b32f5632ce [diff] |
Remove some extraneous parentheses and swap the comparison order to prevent accidental assignment. Silences a warning from LLVM/clang 2.9.
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 @@ 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);