From 33efcaf1579cd09641f606971d5419a1fdb3bcf0 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Sat, 8 May 2010 22:15:32 +0300 Subject: subreader.c: fix fribidi variable type Use FriBidiParType instead of FriBidiCharType for a variable used as the third argument of fribidi_log2vis(). --- subreader.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'subreader.c') diff --git a/subreader.c b/subreader.c index a972cdb874..7465cb0e35 100644 --- a/subreader.c +++ b/subreader.c @@ -1172,7 +1172,6 @@ static subtitle* sub_fribidi (subtitle *sub, int sub_utf8, int from) { FriBidiChar logical[LINE_LEN+1], visual[LINE_LEN+1]; // Hopefully these two won't smash the stack char *ip = NULL, *op = NULL; - FriBidiCharType base; size_t len,orig_len; int l=sub->lines; int char_set_num; @@ -1196,7 +1195,7 @@ static subtitle* sub_fribidi (subtitle *sub, int sub_utf8, int from) break; } len = fribidi_charset_to_unicode (char_set_num, ip, len, logical); - base = fribidi_flip_commas?FRIBIDI_TYPE_ON:FRIBIDI_TYPE_L; + FriBidiParType base = fribidi_flip_commas?FRIBIDI_TYPE_ON:FRIBIDI_TYPE_L; log2vis = fribidi_log2vis (logical, len, &base, /* output */ visual, NULL, NULL, NULL); -- cgit v1.2.3