search for: 4c0b163

Displaying 2 results from an estimated 2 matches for "4c0b163".

Did you mean: 40.163
2007 Feb 01
0
Branch 'interpreter' - 9 commits - libswfdec/js libswfdec/swfdec_script.c libswfdec/swfdec_script.h player/swfdec_debug_stack.c test/trace
...2:29:09 2007 +0100 fix to_number conversions for null in Flash 7 Flash 7 seems to treat null as NaN as opposed to SpiderMonkey, where null is 0. This patch fixes mathematical operations to do this correctly. diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index 4c0b163..d79a3d1 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -156,6 +156,17 @@ swfdec_action_to_number (JSContext *cx, } } +static JSBool +swfdec_value_to_number_7 (JSContext *cx, jsval val, double *d) +{ + if (JSVAL_IS_NULL (val)) { + *d = *cx->runtime->jsNaN...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...2:29:09 2007 +0100 fix to_number conversions for null in Flash 7 Flash 7 seems to treat null as NaN as opposed to SpiderMonkey, where null is 0. This patch fixes mathematical operations to do this correctly. diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index 4c0b163..d79a3d1 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -156,6 +156,17 @@ swfdec_action_to_number (JSContext *cx, } } +static JSBool +swfdec_value_to_number_7 (JSContext *cx, jsval val, double *d) +{ + if (JSVAL_IS_NULL (val)) { + *d = *cx->runtime->jsNaN...