changeset 7:a481060ec57b src

fixed incorrect type cast; patch by Erik Hovland org
author nicodvb
date Thu, 05 Jun 2008 10:19:55 +0000
parents e5663591d13c
children bfb2ca68d906
files dvd_reader.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dvd_reader.c	Thu Jun 05 08:52:00 2008 +0000
+++ b/dvd_reader.c	Thu Jun 05 10:19:55 2008 +0000
@@ -1138,7 +1138,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 );