Fix compile as C++.

SVN revision: 44130
This commit is contained in:
Kim Woelders 2009-12-02 19:20:34 +00:00
parent 35c6792623
commit a775fc0977
1 changed files with 2 additions and 2 deletions

View File

@ -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++)