Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
LOCATION needs to return a const
  • Loading branch information
iritkatriel committed Jun 10, 2022
commit c23e2cf0b5020bbe5f33c686037cae308cf3bc34
2 changes: 1 addition & 1 deletion Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ struct location {
};

#define LOCATION(LNO, END_LNO, COL, END_COL) \
((struct location){(LNO), (END_LNO), (COL), (END_COL)})
((const struct location){(LNO), (END_LNO), (COL), (END_COL)})

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

Expand Down