summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_font_compress.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-05-29 17:04:34 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-05-29 17:31:16 +0900
commitf62b61279701da6d7b1df17688857f2abad458b7 (patch)
tree947e7995e722b734f337c8c3342a33f357c92751 /src/lib/evas/common/evas_font_compress.c
parent1e1104584f1271599a8695e20b0b85fc86b21264 (diff)
Evas: Remove invalid cast and fix warning/bug on windows
On Windows, long is 32 even on Win64. Thanks Vincent for spotting this. @fix
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_font_compress.c4
1 files 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 7701cf497f..1b8d63114b 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)
144 // track to find out where this rows RLE run *ENDS* so keep a 144 // track to find out where this rows RLE run *ENDS* so keep a
145 // pointer to it and we will keep ++ing it with each REL entry we add 145 // pointer to it and we will keep ++ing it with each REL entry we add
146 pos = &(jumptab[y]); 146 pos = &(jumptab[y]);
147 *pos = (int)((unsigned long)p - (unsigned long)scratch); 147 *pos = (int)(p - scratch);
148 // no spans now so init all span things to 0 148 // no spans now so init all span things to 0
149 spanval = spanlen = spannum = 0; 149 spanval = spanlen = spannum = 0;
150 for (x = 0; x < w; x++) 150 for (x = 0; x < w; x++)
@@ -184,7 +184,7 @@ compress_rle4(DATA8 *src, int pitch, int w, int h, int *size_ret)
184 } 184 }
185 } 185 }
186 // get the size of RLE data we have plus int header 186 // get the size of RLE data we have plus int header
187 total = (int)((unsigned long)p - (unsigned long)scratch); 187 total = (int)(p - scratch);
188 size = sizeof(int) + total; 188 size = sizeof(int) + total;
189 // based on total number of bytes in RLE, use 32, 16 or 8 bit jumptable 189 // based on total number of bytes in RLE, use 32, 16 or 8 bit jumptable
190 // and add that to our size 190 // and add that to our size