[libdvdnav-devel] [PATCH 1/2] dvd_reader: Adjust variable type to avoid warning
Diego Biurrun
diego at biurrun.de
Mon Dec 2 04:48:09 CET 2013
src/dvd_reader.c:1384:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
---
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);
--
1.8.3.2
More information about the libdvdnav-devel
mailing list