From a0b1ff58447d27a4ab8f830f9ef69c75c70738e8 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Mon, 6 Jun 2011 20:20:36 -0700 Subject: Remove some extraneous parentheses and swap the comparison order to prevent accidental assignment. Silences a warning from LLVM/clang 2.9. --- Modules/arraymodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12