changeset 372:7cf80b1cba5a src

fixed incorrect type cast; patch by Erik Hovland org
author nicodvb
date Thu, 05 Jun 2008 10:19:26 +0000
parents 587353009f65
children 78e68cde11cf
files libdvdread/dvd_reader.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libdvdread/dvd_reader.c	Thu Jun 05 08:55:12 2008 +0000
+++ b/libdvdread/dvd_reader.c	Thu Jun 05 10:19:26 2008 +0000
@@ -1136,7 +1136,7 @@
 	    ssize_t bytes_read;
 	    size_t file_size = dvd_file->filesize * DVD_VIDEO_LB_LEN;
 	    char *buffer_base = malloc( file_size + 2048 );
-	    char *buffer = (unsigned char *)(((uintptr_t)buffer_base & ~((uintptr_t)2047)) + 2048);
+	    char *buffer = (char *)(((uintptr_t)buffer_base & ~((uintptr_t)2047)) + 2048);
 	    
 	    if( buffer_base == NULL ) {
 	        DVDCloseFile( dvd_file );