mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Whoops, fix build breakage. There were still a few uses of the bool type.
Remove the last few uses of bool/true/false.
This commit is contained in:
parent
3591bbe453
commit
6baa4c4cc6
4 changed files with 11 additions and 19 deletions
|
@ -1660,7 +1660,7 @@ ast_for_trailer(struct compiling *c, const node *n, expr_ty left_expr)
|
|||
int j;
|
||||
slice_ty slc;
|
||||
expr_ty e;
|
||||
bool simple = true;
|
||||
int simple = 1;
|
||||
asdl_seq *slices, *elts;
|
||||
slices = asdl_seq_new((NCH(n) + 1) / 2, c->c_arena);
|
||||
if (!slices)
|
||||
|
@ -1670,7 +1670,7 @@ ast_for_trailer(struct compiling *c, const node *n, expr_ty left_expr)
|
|||
if (!slc)
|
||||
return NULL;
|
||||
if (slc->kind != Index_kind)
|
||||
simple = false;
|
||||
simple = 0;
|
||||
asdl_seq_SET(slices, j / 2, slc);
|
||||
}
|
||||
if (!simple) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue