Skip to content

Commit 24ce84f

Browse files
committed
fixup
1 parent f191f95 commit 24ce84f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Python/compile.c

+7-4
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,13 @@ location_is_after(location loc1, location loc2) {
143143
static inline bool
144144
same_location(location a, location b)
145145
{
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);
146+
if (a.lineno < 0 && b.lineno < 0) {
147+
return true;
148+
}
149+
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;
150153
}
151154

152155
#define LOC(x) SRC_LOCATION_FROM_AST(x)

0 commit comments

Comments
 (0)