Skip to content

Commit 20bba22

Browse files
committed
Use true and false for bool return values
1 parent e2a4ccc commit 20bba22

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • ext/opcache/jit/ir

‎ext/opcache/jit/ir/ir.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ bool ir_use_list_add(ir_ctx *ctx, ir_ref to, ir_ref ref)
16501650
if (n < ctx->use_edges_count && ctx->use_edges[n] == IR_UNUSED) {
16511651
ctx->use_edges[n] = ref;
16521652
use_list->count++;
1653-
return false;
1653+
return 0;
16541654
} else {
16551655
size_t old_size = IR_ALIGNED_SIZE(ctx->use_edges_count * sizeof(ir_ref), 4096);
16561656
size_t new_size = IR_ALIGNED_SIZE((ctx->use_edges_count + use_list->count + 1) * sizeof(ir_ref), 4096);
@@ -1662,13 +1662,13 @@ bool ir_use_list_add(ir_ctx *ctx, ir_ref to, ir_ref ref)
16621662
ctx->use_edges[n] = ref;
16631663
use_list->count++;
16641664
ctx->use_edges_count++;
1665-
return true;
1665+
return 1;
16661666
}
16671667
} else if (n == ctx->use_edges_count) {
16681668
ctx->use_edges[n] = ref;
16691669
use_list->count++;
16701670
ctx->use_edges_count++;
1671-
return false;
1671+
return 0;
16721672
}
16731673
if (use_list->count) {
16741674
memcpy(ctx->use_edges + ctx->use_edges_count, ctx->use_edges + use_list->refs, use_list->count * sizeof(ir_ref));
@@ -1677,7 +1677,7 @@ bool ir_use_list_add(ir_ctx *ctx, ir_ref to, ir_ref ref)
16771677
ctx->use_edges[use_list->refs + use_list->count] = ref;
16781678
use_list->count++;
16791679
ctx->use_edges_count += use_list->count;
1680-
return true;
1680+
return 1;
16811681
}
16821682
}
16831683

@@ -1908,7 +1908,7 @@ bool ir_hashtab_add(ir_hashtab *tab, uint32_t key, ir_ref val)
19081908
key |= tab->mask;
19091909
p->next = ((uint32_t*)data)[(int32_t)key];
19101910
((uint32_t*)data)[(int32_t)key] = pos;
1911-
return true;
1911+
return 1;
19121912
}
19131913

19141914
static int ir_hashtab_key_cmp(const void *b1, const void *b2)

0 commit comments

Comments
 (0)