VirtGL: Fix warnings about server_stub.c
authorFrédéric Dalleau <frederic.dalleau@linux.intel.com>
Wed, 4 Sep 2013 09:07:03 +0000 (11:07 +0200)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Wed, 11 Sep 2013 09:15:32 +0000 (18:15 +0900)
Trigger by gcc option [-Wpointer-to-int-cast]

Change-Id: I90e86f3325bfa31a3f4add64e9c8bca9e6edf6e2

tizen/src/hw/opengl_exec.c

index c4210ce..8f3a91d 100644 (file)
@@ -647,12 +647,12 @@ void init_process_tab()
     memset(processes, 0, sizeof(processes));
 }
 
-#define ARG_TO_CHAR(x)                (char)(x)
-#define ARG_TO_UNSIGNED_CHAR(x)       (unsigned char)(x)
-#define ARG_TO_SHORT(x)               (short)(x)
-#define ARG_TO_UNSIGNED_SHORT(x)      (unsigned short)(x)
-#define ARG_TO_INT(x)                 (int)(x)
-#define ARG_TO_UNSIGNED_INT(x)        (unsigned int)(x)
+#define ARG_TO_CHAR(x)                (char)(long)(x)
+#define ARG_TO_UNSIGNED_CHAR(x)       (unsigned char)(long)(x)
+#define ARG_TO_SHORT(x)               (short)(long)(x)
+#define ARG_TO_UNSIGNED_SHORT(x)      (unsigned short)(long)(x)
+#define ARG_TO_INT(x)                 (int)(long)(x)
+#define ARG_TO_UNSIGNED_INT(x)        (unsigned int)(long)(x)
 #define ARG_TO_FLOAT(x)               (*(float*)&(x))
 #define ARG_TO_DOUBLE(x)              (*(double*)(x))