From 700b6a2bc0d8b0a45bcaa6abe94b7e301ffca5a7 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 5 Aug 2008 17:34:13 +0000 Subject: [PATCH] - add two more (void *) casts to should up MSVC const problems [r21003] --- include/libfirm/adt/array.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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). */ -- 2.20.1