efl io - fix using wrong type for return values pointed to
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 11 Feb 2017 04:06:16 +0000 (13:06 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 11 Feb 2017 14:13:00 +0000 (23:13 +0900)
this potentially could be a bug on 32bit systems. this fixes that and
addresses the warning that pointed it out

src/lib/ecore/efl_io_buffered_stream.c

index ab26bf4..20b76da 100644 (file)
@@ -530,7 +530,7 @@ _efl_io_buffered_stream_pending_read_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stre
 EOLIAN static void
 _efl_io_buffered_stream_progress_get(Eo *o EINA_UNUSED, Efl_Io_Buffered_Stream_Data *pd, size_t *pr, size_t *pw)
 {
-   size_t r = 0, w = 0;
+   uint64_t r = 0, w = 0;
 
    if (pd->sender) efl_io_copier_progress_get(pd->sender, NULL, &w, NULL);
    if (pd->receiver) efl_io_copier_progress_get(pd->receiver, &r, NULL, NULL);