We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f191f95 commit 24ce84fCopy full SHA for 24ce84f
Python/compile.c
@@ -143,10 +143,13 @@ location_is_after(location loc1, location loc2) {
143
static inline bool
144
same_location(location a, location b)
145
{
146
- return (a.lineno < 0 && b.lineno < 0) ||(a.lineno == b.lineno &&
147
- a.end_lineno == b.end_lineno &&
148
- a.col_offset == b.col_offset &&
149
- a.end_col_offset == b.end_col_offset);
+ if (a.lineno < 0 && b.lineno < 0) {
+ return true;
+ }
+ return a.lineno == b.lineno &&
150
+ a.end_lineno == b.end_lineno &&
151
+ a.col_offset == b.col_offset &&
152
+ a.end_col_offset == b.end_col_offset;
153
}
154
155
#define LOC(x) SRC_LOCATION_FROM_AST(x)
0 commit comments