[Swfdec] 2 commits - libswfdec/swfdec_as_types.c test/sound
Pekka Lampila
medar at kemper.freedesktop.org
Thu Jan 10 21:22:38 PST 2008
libswfdec/swfdec_as_types.c | 2 +-
test/sound/sound.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 07f04edfb6d24fd9b4c020de771bdb64ba1d16e9
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Fri Jan 11 07:13:14 2008 +0200
Fix a warning in test/sound/sound.c
diff --git a/test/sound/sound.c b/test/sound/sound.c
index ede8e16..1a4eac7 100644
--- a/test/sound/sound.c
+++ b/test/sound/sound.c
@@ -43,7 +43,7 @@ audio_diff (SwfdecBuffer *compare, SwfdecBuffer *original, const char *filename)
/* must hold since we are rendering it */
g_assert (compare->length % 4 == 0);
if (original->length % 4 != 0) {
- g_print (" ERROR: %s: filesize (%u bytes) not multiple of 4\n", filename,
+ g_print (" ERROR: %s: filesize (%"G_GSIZE_FORMAT" bytes) not multiple of 4\n", filename,
original->length);
return FALSE;
}
commit 9158e50fce66b96ceb3f4c15e45f9b90b4574e58
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Fri Jan 11 07:08:28 2008 +0200
Fix small error that broke swfdec_as_double_to_string
diff --git a/libswfdec/swfdec_as_types.c b/libswfdec/swfdec_as_types.c
index 420d094..3622ba1 100644
--- a/libswfdec/swfdec_as_types.c
+++ b/libswfdec/swfdec_as_types.c
@@ -256,7 +256,7 @@ swfdec_as_double_to_string (SwfdecAsContext *context, double d)
if (isnan (d))
return SWFDEC_AS_STR_NaN;
- if (!isinf (d))
+ if (isinf (d))
return d < 0 ? SWFDEC_AS_STR__Infinity : SWFDEC_AS_STR_Infinity;
/* stupid -0.0 */
if (fabs (d) == 0.0)
More information about the Swfdec
mailing list