From a775fc09777c2cde1cdfb2134a60f07843532ea3 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Wed, 2 Dec 2009 19:20:34 +0000 Subject: [PATCH] Fix compile as C++. SVN revision: 44130 --- src/e16-ecore_hints.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/e16-ecore_hints.c b/src/e16-ecore_hints.c index 6b59ff62..d80d93a9 100644 --- a/src/e16-ecore_hints.c +++ b/src/e16-ecore_hints.c @@ -113,7 +113,7 @@ ecore_x_window_prop_card32_set(Ecore_X_Window win, Ecore_X_Atom atom, unsigned long *pl; unsigned int i; - pl = malloc(num * sizeof(long)); + pl = (unsigned long *)malloc(num * sizeof(long)); if (!pl) return; for (i = 0; i < num; i++) @@ -392,7 +392,7 @@ ecore_x_window_prop_xid_set(Ecore_X_Window win, Ecore_X_Atom atom, unsigned long *pl; unsigned int i; - pl = malloc(num * sizeof(long)); + pl = (unsigned long *)malloc(num * sizeof(long)); if (!pl) return; for (i = 0; i < num; i++)