* fix compilation with c++ compilers

* remove trailing spaces


SVN revision: 35973
This commit is contained in:
Vincent Torri 2008-09-13 07:45:47 +00:00
parent 345bddedca
commit 892ea362f0
1 changed files with 5 additions and 5 deletions

View File

@ -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;
}