efreet - fix warnings on windows to do with size casting

no actual bug - just warnings
This commit is contained in:
Carsten Haitzler 2019-01-15 12:26:42 +00:00
parent e2589e3b48
commit ae6a26b8ed
1 changed files with 5 additions and 5 deletions

View File

@ -296,7 +296,7 @@ store_cache(const char *out)
goto write_error;
EINA_LIST_FOREACH(mimes_str_offsets, l, ptr)
{
val = (int)((long)ptr) + str_start;
val = (int)((size_t)ptr) + str_start;
if (fwrite(&val, sizeof(val), 1, f) != 1)
goto write_error;
}
@ -307,12 +307,12 @@ store_cache(const char *out)
ll = extn_mimes_sorted;
EINA_LIST_FOREACH(extn_mimes_str_offsets, l, ptr)
{
val = (int)((long)ptr) + str_start + mimes_str_len;
val = (int)((size_t)ptr) + str_start + mimes_str_len;
if (fwrite(&val, sizeof(val), 1, f) != 1)
goto write_error;
s = eina_hash_find(extn_mimes, ll->data);
ptr = find_off(s, mimes_sorted, mimes_str_offsets);
val = (int)((long)ptr) + str_start;
val = (int)((size_t)ptr) + str_start;
if (fwrite(&val, sizeof(val), 1, f) != 1)
goto write_error;
ll = ll->next;
@ -324,12 +324,12 @@ store_cache(const char *out)
ll = glob_mimes_sorted;
EINA_LIST_FOREACH(glob_mimes_str_offsets, l, ptr)
{
val = (int)((long)ptr) + str_start + mimes_str_len + extn_mimes_str_len;
val = (int)((size_t)ptr) + str_start + mimes_str_len + extn_mimes_str_len;
if (fwrite(&val, sizeof(val), 1, f) != 1)
goto write_error;
s = eina_hash_find(glob_mimes, ll->data);
ptr = find_off(s, mimes_sorted, mimes_str_offsets);
val = (int)((long)ptr) + str_start;
val = (int)((size_t)ptr) + str_start;
if (fwrite(&val, sizeof(val), 1, f) != 1)
goto write_error;
ll = ll->next;