diff --git a/legacy/evas/src/lib/include/evas_private.h b/legacy/evas/src/lib/include/evas_private.h index efff051747..f263eab1f7 100644 --- a/legacy/evas/src/lib/include/evas_private.h +++ b/legacy/evas/src/lib/include/evas_private.h @@ -85,7 +85,7 @@ MAGIC_CHECK_FAILED(o, t, m) #endif #define NEW_RECT(_r, _x, _y, _w, _h) \ -{(_r) = eina_mempool_alloc(_evas_rectangle_mp, sizeof(Evas_Rectangle)); \ +{(_r) = (Evas_Rectangle *)eina_mempool_alloc(_evas_rectangle_mp, sizeof(Evas_Rectangle)); \ if (_r) \ { \ (_r)->x = (_x); (_r)->y = (_y); \