changeset 19378:d9d58ba1b833

Replace %lld with PRId64, part 2.
author eugeni
date Sun, 13 Aug 2006 10:54:29 +0000
parents f3df92d9f549
children 66e7e52a995e
files libass/ass.c libass/ass_render.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass.c	Sun Aug 13 10:19:35 2006 +0000
+++ b/libass/ass.c	Sun Aug 13 10:54:29 2006 +0000
@@ -505,7 +505,7 @@
 	str = malloc(size + 1);
 	memcpy(str, data, size);
 	str[size] = '\0';
-	mp_msg(MSGT_GLOBAL, MSGL_V, "event at %" PRId64 ", +%" PRId64 ": %s  \n", (uint64_t)timecode, (uint64_t)duration, str);
+	mp_msg(MSGT_GLOBAL, MSGL_V, "event at %" PRId64 ", +%" PRId64 ": %s  \n", (int64_t)timecode, (int64_t)duration, str);
 
 	eid = ass_alloc_event(track);
 	event = track->events + eid;
--- a/libass/ass_render.c	Sun Aug 13 10:19:35 2006 +0000
+++ b/libass/ass_render.c	Sun Aug 13 10:54:29 2006 +0000
@@ -3,6 +3,7 @@
 #include <assert.h>
 #include <math.h>
 #include <stdint.h>
+#include <inttypes.h>
 #include <ft2build.h>
 #include FT_FREETYPE_H
 #include FT_STROKER_H
@@ -669,7 +670,8 @@
 			t1 = strtoll(p, &p, 10);
 			skip(',');
 			t2 = strtoll(p, &p, 10);
-			mp_msg(MSGT_GLOBAL, MSGL_DBG2, "movement6: (%d, %d) -> (%d, %d), (%lld .. %lld)\n", x1, y1, x2, y2, t1, t2);
+			mp_msg(MSGT_GLOBAL, MSGL_DBG2, "movement6: (%d, %d) -> (%d, %d), (%" PRId64 " .. %" PRId64 ")\n", 
+				x1, y1, x2, y2, (int64_t)t1, (int64_t)t2);
 		} else {
 			t1 = 0;
 			t2 = render_context.event->Duration;