jpeg pushed a commit to branch efl-1.10.

http://git.enlightenment.org/core/efl.git/commit/?id=1c007ce0e5566812e94a31c327b53b45fbf998a7

commit 1c007ce0e5566812e94a31c327b53b45fbf998a7
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu May 29 17:04:34 2014 +0900

    Evas: Remove invalid cast and fix warning/bug on windows
    
    On Windows, long is 32 even on Win64.
    Thanks Vincent for spotting this.
    
    @fix
---
 src/lib/evas/common/evas_font_compress.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/evas/common/evas_font_compress.c 
b/src/lib/evas/common/evas_font_compress.c
index 7701cf4..1b8d631 100644
--- a/src/lib/evas/common/evas_font_compress.c
+++ b/src/lib/evas/common/evas_font_compress.c
@@ -144,7 +144,7 @@ compress_rle4(DATA8 *src, int pitch, int w, int h, int 
*size_ret)
         // track to find out where this rows RLE run *ENDS* so keep a
         // pointer to it and we will keep ++ing it with each REL entry we add
         pos = &(jumptab[y]);
-        *pos = (int)((unsigned long)p - (unsigned long)scratch);
+        *pos = (int)(p - scratch);
         // no spans now so init all span things to 0
         spanval = spanlen = spannum = 0;
         for (x = 0; x < w; x++)
@@ -184,7 +184,7 @@ compress_rle4(DATA8 *src, int pitch, int w, int h, int 
*size_ret)
           }
      }
    // get the size of RLE data we have plus int header
-   total = (int)((unsigned long)p - (unsigned long)scratch);
+   total = (int)(p - scratch);
    size = sizeof(int) + total;
    // based on total number of bytes in RLE, use 32, 16 or 8 bit jumptable
    // and add that to our size

-- 


Reply via email to