rename key to priority in pqueue
[libfirm] / include / libfirm / adt / array.h
index da80900..64d2275 100644 (file)
  * @remark  This macro may change arr, so update all references!
  */
 #define ARR_RESIZE(type, arr, n)                                       \
-  ((arr) = _arr_resize((arr), (n), sizeof(type)))
+  ((arr) = _arr_resize((void *)(arr), (n), sizeof(type)))
 
 /**
  * Resize a flexible array, always reallocate data.
  * @remark  This macro may change arr, so update all references!
  */
 #define ARR_SETLEN(type, arr, n)                                       \
-  ((arr) = _arr_setlen((arr), (n), sizeof(type) * (n)))
+  ((arr) = _arr_setlen((void *)(arr), (n), sizeof(type) * (n)))
 
 /** Set a length smaller than the current length of the array.  Do not
  *  resize. len must be <= ARR_LEN(arr). */