BugFix: works again for RAW with non twos-complement
[libfirm] / ir / ir / irphase_t.h
index 594ab1f..00d2c12 100644 (file)
@@ -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]));