evas: Use char for memory pointer arithmetic

SVN revision: 77618
This commit is contained in:
Sebastian Dransfeld 2012-10-09 07:51:08 +00:00
parent 457b240434
commit ec837db229
2 changed files with 3 additions and 3 deletions

View File

@ -181,7 +181,7 @@ _get_orientation(void *map, size_t length)
}
else return 0;
buf = map + 22;
buf = (char *)map + 22;
if (length < (12 * num_directory + 22)) return 0;

View File

@ -322,7 +322,7 @@ pmaps_buffer_plain_update(Pmaps_Buffer *b)
if (b->position + max > eina_file_size_get(b->file))
max = eina_file_size_get(b->file) - b->position;
memcpy(&b->buffer[b->unread_len], b->map + b->position, max);
memcpy(&b->buffer[b->unread_len], (char *)b->map + b->position, max);
b->position += max;
r = max + b->unread_len;
@ -369,7 +369,7 @@ pmaps_buffer_raw_update(Pmaps_Buffer *b)
if (b->position + max > eina_file_size_get(b->file))
max = eina_file_size_get(b->file) - b->position;
memcpy(&b->buffer[b->unread_len], b->map + b->position, max);
memcpy(&b->buffer[b->unread_len], (char *)b->map + b->position, max);
b->position += max;
r = max + b->unread_len;