From: Brett Cannon Date: Tue, 7 Jun 2011 03:20:36 +0000 (-0700) Subject: Remove some extraneous parentheses and swap the comparison order to X-Git-Tag: v3.3.0a1~2164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0b1ff58447d27a4ab8f830f9ef69c75c70738e8;p=thirdparty%2FPython%2Fcpython.git 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 533f404f91ad..38ae5c73879e 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);