emscripten: Fixed compiler warnings about integer to pointer conversions.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 05 Aug 2017 22:10:55 +0200
changeset 111923c8377f1a323
parent 11191 c3b94a174d81
child 11193 c4ff854c6586
emscripten: Fixed compiler warnings about integer to pointer conversions.

Found by buildbot.
src/video/SDL_egl.c
     1.1 --- a/src/video/SDL_egl.c	Sat Aug 05 22:10:48 2017 +0200
     1.2 +++ b/src/video/SDL_egl.c	Sat Aug 05 22:10:55 2017 +0200
     1.3 @@ -371,12 +371,12 @@
     1.4  #if !defined(__WINRT__)
     1.5      if (platform) {
     1.6          if (egl_version_major == 1 && egl_version_minor == 5) {
     1.7 -            _this->egl_data->egl_display = _this->egl_data->eglGetPlatformDisplay(platform, native_display, NULL);
     1.8 +            _this->egl_data->egl_display = _this->egl_data->eglGetPlatformDisplay(platform, (void *)native_display, NULL);
     1.9          } else {
    1.10              if (SDL_EGL_HasExtension(_this, SDL_EGL_CLIENT_EXTENSION, "EGL_EXT_platform_base")) {
    1.11                  _this->egl_data->eglGetPlatformDisplayEXT = SDL_EGL_GetProcAddress(_this, "eglGetPlatformDisplayEXT");
    1.12                  if (_this->egl_data->eglGetPlatformDisplayEXT) {
    1.13 -                    _this->egl_data->egl_display = _this->egl_data->eglGetPlatformDisplayEXT(platform, native_display, NULL);
    1.14 +                    _this->egl_data->egl_display = _this->egl_data->eglGetPlatformDisplayEXT(platform, (void *)native_display, NULL);
    1.15                  }
    1.16              }
    1.17          }
    1.18 @@ -768,4 +768,4 @@
    1.19  #endif /* SDL_VIDEO_OPENGL_EGL */
    1.20  
    1.21  /* vi: set ts=4 sw=4 expandtab: */
    1.22 -    
    1.23 +