diff options
author | Chad Versace <[email protected]> | 2017-05-05 12:27:03 -0700 |
---|---|---|
committer | Adam Jackson <[email protected]> | 2017-05-08 13:10:16 -0400 |
commit | 0160fb1d50d314b9de496d49475a33ddff0f5702 (patch) | |
tree | 931961c78d1ece509262e08c8292563a6090c776 | |
parent | b84979d6c7c293e03bac4847cb5c62bce7f4245a (diff) |
egl: Fix -Wint-to-pointer-cast
main/egldisplay.c: In function '_eglParseX11DisplayAttribList':
main/egldisplay.c:491:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
display->Options.Platform = (void *)value;
The fix: cast to uinptr_t before void*.
^
Fixes: ddb99127 egl/x11: Honor the EGL_PLATFORM_X11_SCREEN_EXT attribute
Cc: Adam Jackson <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
-rw-r--r-- | src/egl/main/egldisplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c index c4b0fd6aab1..6dda4e5e86f 100644 --- a/src/egl/main/egldisplay.c +++ b/src/egl/main/egldisplay.c @@ -488,7 +488,7 @@ _eglParseX11DisplayAttribList(_EGLDisplay *display, const EGLint *attrib_list) * EGL_PLATFORM_X11_SCREEN_EXT, which is optional. */ if (attrib == EGL_PLATFORM_X11_SCREEN_EXT) { - display->Options.Platform = (void *)value; + display->Options.Platform = (void *)(uintptr_t)value; } else { _eglError(EGL_BAD_ATTRIBUTE, "eglGetPlatformDisplay"); return EGL_FALSE; |