X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Fadt%2Farray.h;h=64d2275d3959deb4848a554875b5884615369f96;hb=fc906bb2542111be7aa6cfd082f86a84d43f03b4;hp=da809005da01b9ae7b62c578f262c0a71cc3862e;hpb=a6a29ed6f300163d4008ec8fe43ef4d78631096b;p=libfirm diff --git a/include/libfirm/adt/array.h b/include/libfirm/adt/array.h index da809005d..64d2275d3 100644 --- a/include/libfirm/adt/array.h +++ b/include/libfirm/adt/array.h @@ -230,7 +230,7 @@ * @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. @@ -242,7 +242,7 @@ * @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). */