From: caro Date: Sat, 13 Sep 2008 07:45:47 +0000 (+0000) Subject: * fix compilation with c++ compilers X-Git-Tag: accepted/2.0/20130306.225542~242^2~2805 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ab598bf7405dbc3d08f40e10be2b01cb6ff1343;p=profile%2Fivi%2Fevas.git * fix compilation with c++ compilers * remove trailing spaces git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@35973 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/data/evas_inline_array.x b/src/lib/data/evas_inline_array.x index 0ea0a0d..6939d0c 100644 --- a/src/lib/data/evas_inline_array.x +++ b/src/lib/data/evas_inline_array.x @@ -12,14 +12,14 @@ _evas_array_grow(Evas_Array *array) { void **tmp; size_t total; - + total = array->total + array->step; - tmp = realloc(array->data, sizeof (void*) * total); + tmp = (void **)realloc(array->data, sizeof (void*) * total); if (!tmp) return 0; - + array->total = total; array->data = tmp; - + return 1; } @@ -28,7 +28,7 @@ _evas_array_append(Evas_Array *array, void *data) { if (UNLIKELY((array->count + array->step) > array->total)) if (!_evas_array_grow(array)) return ; - + array->data[array->count++] = data; }