forked from enlightenment/efl
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 SVN revision: 65073
This commit is contained in:
parent
d8abb0f237
commit
966067b4f3
|
@ -63,7 +63,7 @@ ecore_x_mwm_hints_get(Ecore_X_Window win,
|
||||||
cookie =
|
cookie =
|
||||||
xcb_get_property_unchecked(_ecore_xcb_conn, 0, win,
|
xcb_get_property_unchecked(_ecore_xcb_conn, 0, win,
|
||||||
ECORE_X_ATOM_MOTIF_WM_HINTS,
|
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);
|
reply = xcb_get_property_reply(_ecore_xcb_conn, cookie, NULL);
|
||||||
if (!reply) return EINA_FALSE;
|
if (!reply) return EINA_FALSE;
|
||||||
if ((reply->format != 32) || (reply->value_len == 0))
|
if ((reply->format != 32) || (reply->value_len == 0))
|
||||||
|
|
|
@ -405,7 +405,7 @@ ecore_x_window_prop_property_get(Ecore_X_Window win,
|
||||||
|
|
||||||
cookie =
|
cookie =
|
||||||
xcb_get_property_unchecked(_ecore_xcb_conn, 0, win,
|
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);
|
reply = xcb_get_property_reply(_ecore_xcb_conn, cookie, NULL);
|
||||||
if (!reply) return 0;
|
if (!reply) return 0;
|
||||||
if ((reply->format != size) || (reply->value_len == 0))
|
if ((reply->format != size) || (reply->value_len == 0))
|
||||||
|
|
Loading…
Reference in New Issue