From e1c0e3f9033f7ae7c463ddf9c2c94b1c58fa01c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Dalleau?= Date: Wed, 4 Sep 2013 12:48:50 +0200 Subject: [PATCH] VirtGL: Fix warnings in helper_opengl.c Pointer to int conversions Change-Id: Ifc1dd08d71b7a85c99b00ace353954a30f5dcdeb --- tizen/src/hw/helper_opengl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tizen/src/hw/helper_opengl.c b/tizen/src/hw/helper_opengl.c index 3cab342b6a..2d9a8b7f63 100644 --- a/tizen/src/hw/helper_opengl.c +++ b/tizen/src/hw/helper_opengl.c @@ -64,7 +64,7 @@ static inline int do_decode_call_int(ProcessStruct *process, void *args_in, int Signature *signature; int i, ret; char *argptr; - static void* args[50]; + static host_ptr args[50]; int func_number; #ifdef __APPLE__ char temp4mac[256]; @@ -140,9 +140,9 @@ static inline int do_decode_call_int(ProcessStruct *process, void *args_in, int r_buffer += 4; #ifdef __APPLE__ /*On MAC OS, GL call glGetProgramInfoLog and glGetShaderInfoLog will crash if ouput pointer is NULL*/ - args[i] = temp4mac; + args[i] = (host_ptr)temp4mac; #else - args[i] = NULL; + args[i] = (host_ptr)NULL; #endif } else if(*(int*)argptr) { *(int*)r_buffer = args_size; -- 2.34.1