Skip to content

Commit a0b1ff5

Browse files
committed
Remove some extraneous parentheses and swap the comparison order to
prevent accidental assignment. Silences a warning from LLVM/clang 2.9.
1 parent c5011fe commit a0b1ff5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Modules/arraymodule.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,7 @@ array_repr(arrayobject *a)
20912091
if (len == 0) {
20922092
return PyUnicode_FromFormat("array('%c')", (int)typecode);
20932093
}
2094-
if ((typecode == 'u'))
2094+
if ('u' == typecode)
20952095
v = array_tounicode(a, NULL);
20962096
else
20972097
v = array_tolist(a, NULL);

0 commit comments

Comments
 (0)