From: Alexis Hetu Date: Thu, 9 Jun 2016 20:34:46 +0000 (-0400) Subject: Fixed warnings casting int to void* X-Git-Tag: android-x86-7.1-r1~467 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=83dfb166a3b5b85547e285081d06439990cdf00e;p=android-x86%2Fexternal-swiftshader.git Fixed warnings casting int to void* Change-Id: I4be5d80931689d1ac66b58b316c24b16ab6fd761 Reviewed-on: https://swiftshader-review.googlesource.com/5550 Reviewed-by: Nicolas Capens Tested-by: Alexis Hétu --- diff --git a/src/OpenGL/libEGL/Display.cpp b/src/OpenGL/libEGL/Display.cpp index 8e73114df..387d23e3e 100644 --- a/src/OpenGL/libEGL/Display.cpp +++ b/src/OpenGL/libEGL/Display.cpp @@ -200,7 +200,7 @@ void Display::terminate() while(!mSharedImageNameSpace.empty()) { - destroySharedImage((EGLImageKHR)mSharedImageNameSpace.firstName()); + destroySharedImage(reinterpret_cast(mSharedImageNameSpace.firstName())); } } @@ -589,7 +589,7 @@ void *Display::getNativeDisplay() const EGLImageKHR Display::createSharedImage(Image *image) { - return (EGLImageKHR)mSharedImageNameSpace.allocate(image); + return reinterpret_cast(mSharedImageNameSpace.allocate(image)); } bool Display::destroySharedImage(EGLImageKHR image)