[Swfdec-commits] Branch 'abc' - swfdec/swfdec_abc_file.c tools/abcextract.c
Pekka Lampila
medar at kemper.freedesktop.org
Fri Aug 22 07:16:15 PDT 2008
swfdec/swfdec_abc_file.c | 6 +++---
tools/abcextract.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 638f7c313a613fe84adcac8c28016480fab16cd3
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Thu Aug 21 15:56:09 2008 +0300
Make various print statements use %G_GSIZE_FORMAT instead of %u
diff --git a/swfdec/swfdec_abc_file.c b/swfdec/swfdec_abc_file.c
index bddbaeb..cba65f9 100644
--- a/swfdec/swfdec_abc_file.c
+++ b/swfdec/swfdec_abc_file.c
@@ -1058,11 +1058,11 @@ swfdec_abc_file_parse_bodies (SwfdecAbcFile *file, SwfdecBits *bits)
if (!swfdec_abc_file_parse_method (file, bits, NULL, &fun))
return FALSE;
if (swfdec_abc_function_is_native (fun))
- THROW (file, "Native method %u has illegal method body.", fun - file->functions[0]);
+ THROW (file, "Native method %"G_GSIZE_FORMAT" has illegal method body.", fun - file->functions[0]);
if (fun->bound_traits && fun->bound_traits->interface)
- THROW (file, "Interface method %u has illegal method body.", fun - file->functions[0]);
+ THROW (file, "Interface method %"G_GSIZE_FORMAT" has illegal method body.", fun - file->functions[0]);
if (fun->code != NULL)
- THROW (file, "Method %u has a duplicate method body.", fun - file->functions[0]);
+ THROW (file, "Method %"G_GSIZE_FORMAT" has a duplicate method body.", fun - file->functions[0]);
READ_U30 (fun->n_stack, bits);
SWFDEC_LOG (" stack: %u", fun->n_stack);
diff --git a/tools/abcextract.c b/tools/abcextract.c
index 12028c1..43f5f83 100644
--- a/tools/abcextract.c
+++ b/tools/abcextract.c
@@ -65,7 +65,7 @@ extract (SwfdecAsContext *cx, SwfdecBuffer *buffer, gsize offset, gboolean dump)
swfdec_bits_skip_bytes (&bits, offset);
file = swfdec_abc_file_new (cx, &bits);
if (file) {
- g_print (" SUCCESS (%u bytes)\n", bits.ptr - buffer->data - offset);
+ g_print (" SUCCESS (%"G_GSIZE_FORMAT" bytes)\n", bits.ptr - buffer->data - offset);
} else {
g_print (" failed\n");
}
@@ -124,7 +124,7 @@ main (int argc, char **argv)
buffer->data[i + 2] != 0x2E ||
buffer->data[i + 3] != 0x00)
continue;
- g_print ("found data (index %u) at offset %u\n", offsets->len, i);
+ g_print ("found data (index %u) at offset %"G_GSIZE_FORMAT"\n", offsets->len, i);
g_ptr_array_add (offsets, GSIZE_TO_POINTER (i));
}
More information about the Swfdec-commits
mailing list