static void print_array_type(stabs_handle *h, ir_type *tp, int local)
{
ir_type *etp = get_array_element_type(tp);
- int i, n = get_array_n_dimensions(tp);
+ size_t i, n = get_array_n_dimensions(tp);
unsigned type_num = local ? h->next_type_nr++ : get_type_number(h, tp);
- int *perm;
+ size_t *perm;
be_emit_irprintf("%u=a", type_num);
- NEW_ARR_A(int, perm, n);
+ perm = ALLOCAN(size_t, n);
for (i = 0; i < n; ++i) {
perm[i] = get_array_order(tp, i);
}
for (i = 0; i < n; ++i) {
- int dim = perm[i];
+ size_t dim = perm[i];
if (is_Const(get_array_lower_bound(tp, dim)) && is_Const(get_array_upper_bound(tp, dim))) {
long min = get_array_lower_bound_int(tp, dim);
/* create the method entry */
mtp = get_entity_type(ent);
- mtp = get_type_unlowered(mtp);
+ if (is_lowered_type(mtp))
+ mtp = get_associated_type(mtp);
if (get_method_n_ress(mtp) > 0)
rtp = get_method_res_type(mtp, 0);
else