Ecore: Fix warning: large integer implicitly truncated to unsigned type inecore_x/xcb
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 11 Nov 2011 18:51:53 +0000 (18:51 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 11 Nov 2011 18:51:53 +0000 (18:51 +0000)
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
src/lib/ecore_x/xcb/ecore_xcb_window_prop.c

index 5111db4..6c95331 100644 (file)
@@ -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))
index 7fcf455..4a2618e 100644 (file)
@@ -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))