Commit a0b1ff58 authored by Brett Cannon's avatar Brett Cannon

Remove some extraneous parentheses and swap the comparison order to

prevent accidental assignment.

Silences a warning from LLVM/clang 2.9.
parent c5011fe2
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment