From: Pierre-Eric Pelloux-Prayer Date: Thu, 7 Nov 2019 14:06:24 +0000 (+0100) Subject: mesa: fix warning in 32 bits build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99f0feb9e2ffd3cfb7bba299207e14f3f8b435c7;p=mesa.git mesa: fix warning in 32 bits build Fixes: febedee4f6c ("mesa: add EXT_dsa glGetVertexArray* 4 functions") Reviewed-by: Marek Olšák --- 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: