[Swfdec] Branch 'as' - 2 commits - libswfdec/swfdec_as_interpret.c
Benjamin Otte
company at kemper.freedesktop.org
Wed Jun 20 11:59:25 PDT 2007
libswfdec/swfdec_as_interpret.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
New commits:
diff-tree 9c5cb7cb9f6278896bc8a1e7cd7fb541b079c8de (from 1e19719b58b5cfcb800c81a5f5432c3ad662dbbc)
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Jun 20 20:58:52 2007 +0200
the modulo arguments were mixed
diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c
index 596b632..48b75c9 100644
--- a/libswfdec/swfdec_as_interpret.c
+++ b/libswfdec/swfdec_as_interpret.c
@@ -1732,8 +1732,8 @@ swfdec_action_modulo (SwfdecAsContext *c
{
double x, y;
- x = swfdec_as_value_to_number (cx, swfdec_as_stack_pop (cx->frame->stack));
- y = swfdec_as_value_to_number (cx, swfdec_as_stack_peek (cx->frame->stack, 1));
+ y = swfdec_as_value_to_number (cx, swfdec_as_stack_pop (cx->frame->stack));
+ x = swfdec_as_value_to_number (cx, swfdec_as_stack_peek (cx->frame->stack, 1));
/* yay, we're portable! */
if (y == 0.0) {
x = NAN;
diff-tree 1e19719b58b5cfcb800c81a5f5432c3ad662dbbc (from d2871b604f89627469d6d4e314fad0c77b42fcff)
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Jun 20 20:43:31 2007 +0200
unused variable
diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c
index e7a260a..596b632 100644
--- a/libswfdec/swfdec_as_interpret.c
+++ b/libswfdec/swfdec_as_interpret.c
@@ -997,7 +997,6 @@ static void
swfdec_action_string_compare (SwfdecAsContext *cx, guint action, const guint8 *data, guint len)
{
const char *l, *r;
- int comp;
gboolean cond;
r = swfdec_as_value_to_string (cx, swfdec_as_stack_pop (cx->frame->stack));
More information about the Swfdec
mailing list