summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2020-10-27 15:52:59 +0200
committerOleg Oshmyan <chortos@inbox.lv>2020-10-28 21:32:47 +0200
commit59eb317aaa495ad5331c9efdf8d7bf3d860c2992 (patch)
tree96416a7cf24002de5483110c6fb3172be8eb1d7f
parent017137471d0043e0321e377ed8da48e45a3ec632 (diff)
downloadlibass-59eb317aaa495ad5331c9efdf8d7bf3d860c2992.tar.bz2
libass-59eb317aaa495ad5331c9efdf8d7bf3d860c2992.tar.xz
Match more types and format specifiers to size_t fontdata_used
Omissions in commit 910211f1c0078e37546f73e95306724358b89be2. Microsoft's C library does not support %zu until Universal CRT (Visual Studio 2015). At worst, this verbose-level message will look wrong and be useless.
-rw-r--r--libass/ass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libass/ass.c b/libass/ass.c
index 5be09a7..51fa201 100644
--- a/libass/ass.c
+++ b/libass/ass.c
@@ -820,7 +820,7 @@ static unsigned char *decode_chars(const unsigned char *src,
unsigned char *dst, size_t cnt_in)
{
uint32_t value = 0;
- for (int i = 0; i < cnt_in; i++)
+ for (size_t i = 0; i < cnt_in; i++)
value |= (uint32_t) ((src[i] - 33u) & 63) << 6 * (3 - i);
*dst++ = value >> 16;
@@ -850,7 +850,7 @@ static int decode_font(ASS_Track *track)
size_t dsize; // decoded size
unsigned char *buf = 0;
- ass_msg(track->library, MSGL_V, "Font: %d bytes encoded data",
+ ass_msg(track->library, MSGL_V, "Font: %zu bytes encoded data",
track->parser_priv->fontdata_used);
size = track->parser_priv->fontdata_used;
if (size % 4 == 1) {