Skip to content

Commit c23e2cf

Browse files
committed
LOCATION needs to return a const
1 parent 5e06cad commit c23e2cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ struct location {
157157
};
158158

159159
#define LOCATION(LNO, END_LNO, COL, END_COL) \
160-
((struct location){(LNO), (END_LNO), (COL), (END_COL)})
160+
((const struct location){(LNO), (END_LNO), (COL), (END_COL)})
161161

162162
static struct location NO_LOCATION = (LOCATION(-1, -1, -1, -1));
163163

0 commit comments

Comments
 (0)