egl: Fix -Wint-to-pointer-cast
authorChad Versace <chadversary@chromium.org>
Fri, 5 May 2017 19:27:03 +0000 (12:27 -0700)
committerAdam Jackson <ajax@redhat.com>
Mon, 8 May 2017 17:10:16 +0000 (13:10 -0400)
commit0160fb1d50d314b9de496d49475a33ddff0f5702
tree931961c78d1ece509262e08c8292563a6090c776
parentb84979d6c7c293e03bac4847cb5c62bce7f4245a
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 <ajax@redhat.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/main/egldisplay.c