aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-01-15 12:26:42 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-01-15 12:26:42 +0000
commitae6a26b8ed4ec248cc089c6f2ef3649f78a57190 (patch)
treee538291b9461088febaf8d41eaa06b2a3d8517da
parentefl-mono: Only raise exception for managed errors. (diff)
downloadefl-ae6a26b8ed4ec248cc089c6f2ef3649f78a57190.tar.gz
efreet - fix warnings on windows to do with size casting
no actual bug - just warnings
-rw-r--r--src/bin/efreet/efreet_mime_cache_create.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/efreet/efreet_mime_cache_create.c b/src/bin/efreet/efreet_mime_cache_create.c
index b179316677..68e30179ee 100644
--- a/src/bin/efreet/efreet_mime_cache_create.c
+++ b/src/bin/efreet/efreet_mime_cache_create.c
@@ -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;