From 99f0feb9e2ffd3cfb7bba299207e14f3f8b435c7 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Thu, 7 Nov 2019 15:06:24 +0100 Subject: [PATCH] mesa: fix warning in 32 bits build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: febedee4f6c ("mesa: add EXT_dsa glGetVertexArray* 4 functions") Reviewed-by: Marek Olšák --- src/mesa/main/varray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index f93ad810984..048e836b60c 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -3688,7 +3688,7 @@ _mesa_GetVertexArrayIntegervEXT(GLuint vaobj, GLenum pname, GLint *param) case GL_FOG_COORD_ARRAY_POINTER: case GL_SECONDARY_COLOR_ARRAY_POINTER: _get_vao_pointerv(pname, vao, &ptr, "glGetVertexArrayIntegervEXT"); - *param = (int) ((uint64_t) ptr & 0xFFFFFFFF); + *param = (int) ((intptr_t) ptr & 0xFFFFFFFF); break; default: -- 2.30.2