[Swfdec] 2 commits - libswfdec/js libswfdec/swfdec_js_movie.c

Benjamin Otte company at kemper.freedesktop.org
Thu Jun 7 10:09:17 PDT 2007


 libswfdec/js/jsdtoa.c       |    2 +-
 libswfdec/swfdec_js_movie.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
diff-tree a48590a73150a019cbdaf0acdf358be74e9b7756 (from 49a712856eb2ac8f994937efd2f5b382d3408322)
Author: Benjamin Otte <otte at gnome.org>
Date:   Thu Jun 7 19:10:32 2007 +0200

    there shouldn't be an assertion here, but a debug error
    
    fixes Gnome #443357

diff --git a/libswfdec/swfdec_js_movie.c b/libswfdec/swfdec_js_movie.c
index 53fb5d9..12e378e 100644
--- a/libswfdec/swfdec_js_movie.c
+++ b/libswfdec/swfdec_js_movie.c
@@ -361,7 +361,7 @@ mc_hitTest (JSContext *cx, JSObject *obj
       *rval = BOOLEAN_TO_JSVAL (JS_FALSE);
     }
   } else if (argc == 3) {
-    g_assert_not_reached ();
+    SWFDEC_ERROR ("hitTest with 3 arguments not implemented");
   } else {
     return JS_FALSE;
   }
diff-tree 49a712856eb2ac8f994937efd2f5b382d3408322 (from a87056c00a0b17289d65d1f00800eff3a992b5fb)
Author: Benjamin Otte <otte at gnome.org>
Date:   Thu Jun 7 19:09:47 2007 +0200

    fix compile warning

diff --git a/libswfdec/js/jsdtoa.c b/libswfdec/js/jsdtoa.c
index f303b90..6638368 100644
--- a/libswfdec/js/jsdtoa.c
+++ b/libswfdec/js/jsdtoa.c
@@ -257,7 +257,7 @@ Exactly one of IEEE_8087 or IEEE_MC68k s
 #define word1(x)        JSDOUBLE_LO32(x)
 #define set_word1(x, y) JSDOUBLE_SET_LO32(x, y)
 
-#define Storeinc(a,b,c) (*(a)++ = (b) << 16 | (c) & 0xffff)
+#define Storeinc(a,b,c) (*(a)++ = ((b) << 16 | (c) & 0xffff))
 
 /* #define P DBL_MANT_DIG */
 /* Ten_pmax = floor(P*log(2)/log(5)) */


More information about the Swfdec mailing list