diff --git a/src/switch_core.c b/src/switch_core.c index a41040936d..44fb016087 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -362,14 +362,14 @@ SWITCH_DECLARE(switch_status) switch_core_file_read(switch_file_handle *fh, void { assert(fh != NULL); - return fh->file_interface->file_read(fh, data, len); + return fh->file_interface->file_read(fh, data, (int *)len); } SWITCH_DECLARE(switch_status) switch_core_file_write(switch_file_handle *fh, void *data, size_t *len) { assert(fh != NULL); - return fh->file_interface->file_write(fh, data, len); + return fh->file_interface->file_write(fh, data, (int *)len); } SWITCH_DECLARE(switch_status) switch_core_file_seek(switch_file_handle *fh, unsigned int *cur_pos, unsigned int samples, int whence)