From ec14f509a0045c748b4d29290777464d4f7c0e59 Mon Sep 17 00:00:00 2001 From: caro Date: Fri, 11 Nov 2011 18:51:53 +0000 Subject: [PATCH] Ecore: Fix warning: large integer implicitly truncated to unsigned type inecore_x/xcb xcb_get_property_unchecked() requires an uint32_t as last parameter, so use UINT_MAX instead of LONG_MAX Patch from OpenBSD via Jonathan Armani git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@65073 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_x/xcb/ecore_xcb_mwm.c | 2 +- src/lib/ecore_x/xcb/ecore_xcb_window_prop.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore_x/xcb/ecore_xcb_mwm.c b/src/lib/ecore_x/xcb/ecore_xcb_mwm.c index 5111db4..6c95331 100644 --- a/src/lib/ecore_x/xcb/ecore_xcb_mwm.c +++ b/src/lib/ecore_x/xcb/ecore_xcb_mwm.c @@ -63,7 +63,7 @@ ecore_x_mwm_hints_get(Ecore_X_Window win, cookie = xcb_get_property_unchecked(_ecore_xcb_conn, 0, win, ECORE_X_ATOM_MOTIF_WM_HINTS, - ECORE_X_ATOM_MOTIF_WM_HINTS, 0, LONG_MAX); + ECORE_X_ATOM_MOTIF_WM_HINTS, 0, UINT_MAX); reply = xcb_get_property_reply(_ecore_xcb_conn, cookie, NULL); if (!reply) return EINA_FALSE; if ((reply->format != 32) || (reply->value_len == 0)) diff --git a/src/lib/ecore_x/xcb/ecore_xcb_window_prop.c b/src/lib/ecore_x/xcb/ecore_xcb_window_prop.c index 7fcf455..4a2618e 100644 --- a/src/lib/ecore_x/xcb/ecore_xcb_window_prop.c +++ b/src/lib/ecore_x/xcb/ecore_xcb_window_prop.c @@ -405,7 +405,7 @@ ecore_x_window_prop_property_get(Ecore_X_Window win, cookie = xcb_get_property_unchecked(_ecore_xcb_conn, 0, win, - property, type, 0, LONG_MAX); + property, type, 0, UINT_MAX); reply = xcb_get_property_reply(_ecore_xcb_conn, cookie, NULL); if (!reply) return 0; if ((reply->format != size) || (reply->value_len == 0)) -- 2.7.4