[Mesa-dev] [PATCH] vbo: fix build errors on android

Charmaine Lee charmainel at vmware.com
Mon Sep 4 07:29:56 UTC 2017


Reviewed-by: Charmaine Lee <charmainel at vmware.com>


> On Sep 3, 2017, at 10:13 PM, Tapani Pälli <tapani.palli at intel.com> wrote:
> 
> incompatible pointer to integer conversion assigning to 'GLintptr' (aka 'int')
> from 'const char *' [-Werror,-Wint-conversion]
> 
>      offset = indices;
>             ^ ~~~~~~~
> 
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> ---
> src/mesa/vbo/vbo_minmax_index.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/vbo/vbo_minmax_index.c b/src/mesa/vbo/vbo_minmax_index.c
> index 58a2af49ac..1377926bba 100644
> --- a/src/mesa/vbo/vbo_minmax_index.c
> +++ b/src/mesa/vbo/vbo_minmax_index.c
> @@ -255,7 +255,7 @@ vbo_get_minmax_index(struct gl_context *ctx,
>                                 count, min_index, max_index))
>          return;
> 
> -      offset = indices;
> +      offset = (GLintptr) indices;
>       indices = ctx->Driver.MapBufferRange(ctx, offset, size,
>                                            GL_MAP_READ_BIT, ib->obj,
>                                            MAP_INTERNAL);
> -- 
> 2.13.5
> 


More information about the mesa-dev mailing list