From 8e59a530c453f8d7c8d36611ae975fc3528afc30 Mon Sep 17 00:00:00 2001 From: eugeni Date: Thu, 29 May 2008 18:35:18 +0000 Subject: [PATCH] Offset should be size_t. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26922 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libass/ass.c b/libass/ass.c index df65dbd..4b803db 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -855,7 +855,7 @@ static char* sub_recode(char* data, size_t size, char* codepage) rc = iconv(icdsc, &ip, &ileft, &op, &oleft); if (rc == (size_t)(-1)) { if (errno == E2BIG) { - int offset = op - outbuf; + size_t offset = op - outbuf; outbuf = (char*)realloc(outbuf, osize + size); op = outbuf + offset; osize += size; -- 2.40.0