From 47e866557d7132b7d8dbba240f7a086698d99ca2 Mon Sep 17 00:00:00 2001 From: doursse Date: Thu, 17 Jul 2008 07:45:42 +0000 Subject: [PATCH] add cast for c++ compilers. Patch from Dmitriy Mazovka SVN revision: 35138 --- legacy/evas/src/lib/include/evas_inline.x | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/legacy/evas/src/lib/include/evas_inline.x b/legacy/evas/src/lib/include/evas_inline.x index 4f39cc625e..3b288312be 100644 --- a/legacy/evas/src/lib/include/evas_inline.x +++ b/legacy/evas/src/lib/include/evas_inline.x @@ -10,7 +10,7 @@ evas_add_rect(Evas_Rectangles *rects, int x, int y, int w, int h) unsigned int _tmp_total; _tmp_total = rects->total + 32; - _add_rect = realloc(rects->array, sizeof(Evas_Rectangle) * _tmp_total); + _add_rect = (Evas_Rectangle *)realloc(rects->array, sizeof(Evas_Rectangle) * _tmp_total); if (!_add_rect) return ; rects->total = _tmp_total; @@ -32,7 +32,7 @@ evas_common_draw_context_cutouts_add(Cutout_Rects* rects, if (rects->max < (rects->active + 1)) { rects->max += 32; - rects->rects = realloc(rects->rects, sizeof(Cutout_Rect) * rects->max); + rects->rects = (Cutout_Rect *)realloc(rects->rects, sizeof(Cutout_Rect) * rects->max); } rect = rects->rects + rects->active; @@ -67,7 +67,7 @@ evas_event_passes_through(Evas_Object *obj) if (obj->smart.parent) { int par_pass; - + par_pass = evas_event_passes_through(obj->smart.parent); obj->parent_cache_valid = 1; obj->parent_pass_events = par_pass;