[libdvdnav-devel] dvd_reader: Adjust variable type to avoid warning
Diego Biurrun
git at videolan.org
Thu Jan 2 21:54:01 CET 2014
libdvdread | branch: master | Diego Biurrun <diego at biurrun.de> | Sun Dec 1 22:42:44 2013 -0500| [2033823209688d781bac986509b552acbeb8b0b3] | committer: Diego Biurrun
dvd_reader: Adjust variable type to avoid warning
src/dvd_reader.c:1384:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=2033823209688d781bac986509b552acbeb8b0b3
---
src/dvd_reader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/dvd_reader.c b/src/dvd_reader.c
index 64105ee..30364db 100644
--- a/src/dvd_reader.c
+++ b/src/dvd_reader.c
@@ -1369,7 +1369,7 @@ int DVDDiscID( dvd_reader_t *dvd, unsigned char *discid )
dvd_file_t *dvd_file = DVDOpenFile( dvd, title, DVD_READ_INFO_FILE );
if( dvd_file != NULL ) {
ssize_t bytes_read;
- size_t file_size = dvd_file->filesize * DVD_VIDEO_LB_LEN;
+ ssize_t file_size = dvd_file->filesize * DVD_VIDEO_LB_LEN;
char *buffer_base = malloc( file_size + 2048 );
char *buffer = (char *)(((uintptr_t)buffer_base & ~((uintptr_t)2047)) + 2048);
More information about the libdvdnav-devel
mailing list