libswfdec/swfdec_as_context.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) New commits: diff-tree 0c961bd3f00f8bc768e085f449df7ffb828a8e50 (from 5918f2126c917361bc1bd73e1b659255b42fda47) Author: Benjamin Otte <otte at gnome.org> Date: Wed Oct 10 12:05:23 2007 +0200 only assign ints as ints diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index e5660a0..61de9b5 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -1227,7 +1227,11 @@ swfdec_as_context_parseInt (SwfdecAsCont return; } - SWFDEC_AS_VALUE_SET_INT (retval, i); + if (i > G_MAXINT32 || i < G_MININT32) { + SWFDEC_AS_VALUE_SET_NUMBER (retval, i); + } else { + SWFDEC_AS_VALUE_SET_INT (retval, i); + } } SWFDEC_AS_NATIVE (100, 3, swfdec_as_context_parseFloat)
Reasonably Related Threads
- Branch 'as' - 8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_math.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c
- Branch 'as' - 3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c
- 7 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_string.c test/trace
- 4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_load_object.c
- Branch 'as' - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_player.c