changeset 27499:1dfad1b382fa

libass: fix type mismatch between size parameter and the way it's used
author aurel
date Fri, 05 Sep 2008 22:59:01 +0000
parents d895515b366d
children 84723050e997
files libass/ass.c libass/ass.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass.c	Fri Sep 05 15:07:06 2008 +0000
+++ b/libass/ass.c	Fri Sep 05 22:59:01 2008 +0000
@@ -1021,7 +1021,7 @@
 	return track;
 }
 
-char* read_file_recode(char* fname, char* codepage, int* size)
+char* read_file_recode(char* fname, char* codepage, size_t* size)
 {
 	char* buf;
 	size_t bufsize;
--- a/libass/ass.h	Fri Sep 05 15:07:06 2008 +0000
+++ b/libass/ass.h	Fri Sep 05 22:59:01 2008 +0000
@@ -179,7 +179,7 @@
 */
 void ass_process_chunk(ass_track_t* track, char *data, int size, long long timecode, long long duration);
 
-char* read_file_recode(char* fname, char* codepage, int* size);
+char* read_file_recode(char* fname, char* codepage, size_t* size);
 
 /**
  * \brief Read subtitles from file.