X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firphase_t.h;h=00d2c1252d383692315794124824a465c182638c;hb=bb5c6d5ce2e35c4074900017f8c8e1a4935054d0;hp=594ab1f0958f7eb28ba86d90a90a787d4ecfe2ef;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/ir/ir/irphase_t.h b/ir/ir/irphase_t.h index 594ab1f09..00d2c1252 100644 --- a/ir/ir/irphase_t.h +++ b/ir/ir/irphase_t.h @@ -70,7 +70,7 @@ struct _ir_phase { */ typedef struct { unsigned node_slots; /**< The number of allocated node slots. */ - unsigned node_slots_used; /**< The number of used node slots, ie. nodes that have node data. */ + unsigned node_slots_used; /**< The number of used node slots, i.e. nodes that have node data. */ unsigned node_map_bytes; /**< Number of used bytes for the node map. */ unsigned overall_bytes; /**< Overall number of used bytes for the phase. */ } phase_stat_t; @@ -299,7 +299,7 @@ static INLINE void _private_phase_enlarge(ir_phase *phase, unsigned max_idx) max_idx = MAX(max_idx, last_irg_idx); new_cap = (size_t) (max_idx * phase->growth_factor / 256); - phase->data_ptr = (void **)xrealloc(phase->data_ptr, new_cap * sizeof(phase->data_ptr[0])); + phase->data_ptr = XREALLOC(phase->data_ptr, void*, new_cap); /* initialize the newly allocated memory. */ memset(phase->data_ptr + old_cap, 0, (new_cap - old_cap) * sizeof(phase->data_ptr[0]));