From 622970b4c1e68ce8b9470c9ecf79eacd2d94c2d7 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Fri, 31 Oct 2014 23:11:27 +0100 Subject: opengl: Fix 64-bit build. A previous patch broke the 64-bit with the following error message: device/generic/goldfish/opengl/system/egl/egl.cpp: In function 'EGLBoolean eglGetConfigs(EGLDisplay, void**, EGLint, EGLint*)': device/generic/goldfish/opengl/system/egl/egl.cpp:559:33: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] *configs++ = (EGLConfig)i; This was due to the fact that the type of |i| went from uintptr_t to int. This patch fixes the issue by casting i to (EGLConfig)(uintptr_t)i. Change-Id: I3158c91d63b13eff3f8e8babb1faba8b58dc7373 --- opengl/system/egl/egl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'opengl') diff --git a/opengl/system/egl/egl.cpp b/opengl/system/egl/egl.cpp index 7ff7429..1ad91ff 100644 --- a/opengl/system/egl/egl.cpp +++ b/opengl/system/egl/egl.cpp @@ -554,9 +554,9 @@ EGLBoolean eglGetConfigs(EGLDisplay dpy, EGLConfig *configs, EGLint config_size, return EGL_TRUE; } - EGLint i=0; - for (i=0 ; i