summaryrefslogtreecommitdiff
path: root/legacy/evas
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2012-10-09 07:51:08 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2012-10-09 07:51:08 +0000
commitec837db229caa35e8c0a43de7b282688627e7c18 (patch)
tree3668fc3ba3d8e463fc62313d4d050a9c3f3ba04b /legacy/evas
parent457b24043438c475981df7ca8d8a2e93128e5fa6 (diff)
evas: Use char for memory pointer arithmetic
SVN revision: 77618
Diffstat (limited to 'legacy/evas')
-rw-r--r--legacy/evas/src/bin/loaders/jpeg/evas_image_load_jpeg.c2
-rw-r--r--legacy/evas/src/bin/loaders/pmaps/evas_image_load_pmaps.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/legacy/evas/src/bin/loaders/jpeg/evas_image_load_jpeg.c b/legacy/evas/src/bin/loaders/jpeg/evas_image_load_jpeg.c
index 4fbd061f40..d1b1a7977c 100644
--- a/legacy/evas/src/bin/loaders/jpeg/evas_image_load_jpeg.c
+++ b/legacy/evas/src/bin/loaders/jpeg/evas_image_load_jpeg.c
@@ -181,7 +181,7 @@ _get_orientation(void *map, size_t length)
181 } 181 }
182 else return 0; 182 else return 0;
183 183
184 buf = map + 22; 184 buf = (char *)map + 22;
185 185
186 if (length < (12 * num_directory + 22)) return 0; 186 if (length < (12 * num_directory + 22)) return 0;
187 187
diff --git a/legacy/evas/src/bin/loaders/pmaps/evas_image_load_pmaps.c b/legacy/evas/src/bin/loaders/pmaps/evas_image_load_pmaps.c
index 22a9791a3a..20f740ee75 100644
--- a/legacy/evas/src/bin/loaders/pmaps/evas_image_load_pmaps.c
+++ b/legacy/evas/src/bin/loaders/pmaps/evas_image_load_pmaps.c
@@ -322,7 +322,7 @@ pmaps_buffer_plain_update(Pmaps_Buffer *b)
322 if (b->position + max > eina_file_size_get(b->file)) 322 if (b->position + max > eina_file_size_get(b->file))
323 max = eina_file_size_get(b->file) - b->position; 323 max = eina_file_size_get(b->file) - b->position;
324 324
325 memcpy(&b->buffer[b->unread_len], b->map + b->position, max); 325 memcpy(&b->buffer[b->unread_len], (char *)b->map + b->position, max);
326 b->position += max; 326 b->position += max;
327 r = max + b->unread_len; 327 r = max + b->unread_len;
328 328
@@ -369,7 +369,7 @@ pmaps_buffer_raw_update(Pmaps_Buffer *b)
369 if (b->position + max > eina_file_size_get(b->file)) 369 if (b->position + max > eina_file_size_get(b->file))
370 max = eina_file_size_get(b->file) - b->position; 370 max = eina_file_size_get(b->file) - b->position;
371 371
372 memcpy(&b->buffer[b->unread_len], b->map + b->position, max); 372 memcpy(&b->buffer[b->unread_len], (char *)b->map + b->position, max);
373 b->position += max; 373 b->position += max;
374 r = max + b->unread_len; 374 r = max + b->unread_len;
375 375