From 103edcb517d1d4c48b22cee7514788145ebc720b Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Thu, 27 Jul 2017 16:09:15 +0900 Subject: [PATCH] evas_gl: Fix build warnings Change-Id: Ic487fdab4f80e917c2b52760c5bb22c0ede2cff2 Signed-off-by: huiyu.eun --- src/modules/evas/engines/gl_common/evas_gl_texture.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c b/src/modules/evas/engines/gl_common/evas_gl_texture.c index ef2c9c0..e033e3c 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_texture.c +++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c @@ -1146,8 +1146,8 @@ evas_gl_common_texture_upload(Evas_GL_Texture *tex, RGBA_Image *im, unsigned int GL_TH(glPixelStorei, GL_UNPACK_ROW_LENGTH, 0); GL_TH(glPixelStorei, GL_UNPACK_ALIGNMENT, bytes_count); - if ((tex->gc->shared->info.tune.atlas.max_memcpy_size > im->cache_entry.w) && - (tex->gc->shared->info.tune.atlas.max_memcpy_size > im->cache_entry.h)) + if ((tex->gc->shared->info.tune.atlas.max_memcpy_size > (int)im->cache_entry.w) && + (tex->gc->shared->info.tune.atlas.max_memcpy_size > (int)im->cache_entry.h)) { int sw, sh, dw, dh; @@ -1161,8 +1161,8 @@ evas_gl_common_texture_upload(Evas_GL_Texture *tex, RGBA_Image *im, unsigned int ERR("memory allocation is failed.."); return; } - DATA8 *dp = (unsigned char *)temp; - DATA8 *sp = (unsigned char *)im->image.data; + DATA8 *dp = (DATA8 *) temp; + DATA8 *sp = (DATA8 *) im->image.data; int i; dp += (dw * bytes_count); @@ -1185,7 +1185,7 @@ evas_gl_common_texture_upload(Evas_GL_Texture *tex, RGBA_Image *im, unsigned int // ooooo memcpy(dp, dp - (dw * bytes_count), dw * bytes_count); - dp = temp; + dp = (DATA8 *) temp; // ooooo // xxxxx memcpy(dp, dp + (dw * bytes_count), dw * bytes_count); -- 2.7.4