Skip to content

Commit ba398ec

Browse files
committed
add a few missing const qualifiers
1 parent a0b64b8 commit ba398ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: Python/compile.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -266,27 +266,27 @@ typedef struct basicblock_ {
266266

267267

268268
static struct instr *
269-
basicblock_last_instr(basicblock *b) {
269+
basicblock_last_instr(const basicblock *b) {
270270
if (b->b_iused) {
271271
return &b->b_instr[b->b_iused - 1];
272272
}
273273
return NULL;
274274
}
275275

276276
static inline int
277-
basicblock_returns(basicblock *b) {
277+
basicblock_returns(const basicblock *b) {
278278
struct instr *last = basicblock_last_instr(b);
279279
return last && last->i_opcode == RETURN_VALUE;
280280
}
281281

282282
static inline int
283-
basicblock_exits_scope(basicblock *b) {
283+
basicblock_exits_scope(const basicblock *b) {
284284
struct instr *last = basicblock_last_instr(b);
285285
return last && IS_SCOPE_EXIT_OPCODE(last->i_opcode);
286286
}
287287

288288
static inline int
289-
basicblock_nofallthrough(basicblock *b) {
289+
basicblock_nofallthrough(const basicblock *b) {
290290
struct instr *last = basicblock_last_instr(b);
291291
return (last &&
292292
(IS_SCOPE_EXIT_OPCODE(last->i_opcode) ||

0 commit comments

Comments
 (0)