forked from enlightenment/efl
evas: Use char for memory pointer arithmetic
SVN revision: 77618
This commit is contained in:
parent
457b240434
commit
ec837db229
|
@ -181,7 +181,7 @@ _get_orientation(void *map, size_t length)
|
||||||
}
|
}
|
||||||
else return 0;
|
else return 0;
|
||||||
|
|
||||||
buf = map + 22;
|
buf = (char *)map + 22;
|
||||||
|
|
||||||
if (length < (12 * num_directory + 22)) return 0;
|
if (length < (12 * num_directory + 22)) return 0;
|
||||||
|
|
||||||
|
|
|
@ -322,7 +322,7 @@ pmaps_buffer_plain_update(Pmaps_Buffer *b)
|
||||||
if (b->position + max > eina_file_size_get(b->file))
|
if (b->position + max > eina_file_size_get(b->file))
|
||||||
max = eina_file_size_get(b->file) - b->position;
|
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;
|
b->position += max;
|
||||||
r = max + b->unread_len;
|
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))
|
if (b->position + max > eina_file_size_get(b->file))
|
||||||
max = eina_file_size_get(b->file) - b->position;
|
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;
|
b->position += max;
|
||||||
r = max + b->unread_len;
|
r = max + b->unread_len;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue