evas_gl: Fix build warnings 62/140962/3
authorhuiyu.eun <huiyu.eun@samsung.com>
Thu, 27 Jul 2017 07:09:15 +0000 (16:09 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Tue, 1 Aug 2017 03:02:36 +0000 (03:02 +0000)
Change-Id: Ic487fdab4f80e917c2b52760c5bb22c0ede2cff2
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/modules/evas/engines/gl_common/evas_gl_texture.c

index ef2c9c0..e033e3c 100644 (file)
@@ -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);