[libdvdcss-devel] [PATCH 18/25] device: Drop some unnecessary casts from offset calculations
Jean-Baptiste Kempf
jb at videolan.org
Mon Oct 20 19:12:47 CEST 2014
I have a bad feeling about that one, for some reason...
Le 20/10/2014 11:59, Diego Biurrun a écrit :
> ---
> src/device.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/device.c b/src/device.c
> index f78ffc0..871572c 100644
> --- a/src/device.c
> +++ b/src/device.c
> @@ -695,7 +695,7 @@ static int libc_seek( dvdcss_t dvdcss, int i_blocks )
> return i_blocks;
> }
>
> - i_seek = (off_t)i_blocks * (off_t)DVDCSS_BLOCK_SIZE;
> + i_seek = i_blocks * DVDCSS_BLOCK_SIZE;
> i_seek = lseek( dvdcss->i_read_fd, i_seek, SEEK_SET );
>
> if( i_seek < 0 )
> @@ -779,7 +779,7 @@ static int libc_read ( dvdcss_t dvdcss, void *p_buffer, int i_blocks )
> {
> off_t i_size, i_ret;
>
> - i_size = (off_t)i_blocks * (off_t)DVDCSS_BLOCK_SIZE;
> + i_size = i_blocks * DVDCSS_BLOCK_SIZE;
> i_ret = read( dvdcss->i_read_fd, p_buffer, i_size );
>
> if( i_ret < 0 )
>
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
More information about the libdvdcss-devel
mailing list