search for: after_undefined

Displaying 3 results from an estimated 3 matches for "after_undefined".

2008 Jan 07
0
3 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_array.c libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_types.c libswfdec/swfdec_xml.c
...teger_to_string (object->context, swfdec_as_array_length (object_new)); swfdec_as_object_set_variable (object_new, var, &argv[j]); } @@ -1036,7 +1034,7 @@ swfdec_as_array_foreach_sort_rename (SwfdecAsObject *object, // leave room for undefined values if (after_undefined) i += fdata->length - fdata->defined_values - 1; - return swfdec_as_double_to_string (object->context, i); + return swfdec_as_integer_to_string (object->context, i); } if (fdata->order[i] == &fdata->undefined) after_undefined = TRUE; @@ -1070,7 +10...
2007 Jul 21
0
12 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/jpeg libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...return swfdec_as_double_to_string (object->context, *length - 1 - idx); } static void @@ -700,11 +700,11 @@ swfdec_as_array_foreach_sort_rename (Swf SwfdecAsValue *value, guint flags, gpointer data) { ForeachSortData *fdata = data; - gint32 index, i; + gint32 idx, i; gboolean after_undefined = FALSE; - index = swfdec_as_array_to_index (variable); - if (index == -1) + idx = swfdec_as_array_to_index (variable); + if (idx == -1) return variable; if (SWFDEC_AS_VALUE_IS_UNDEFINED (value)) @@ -734,11 +734,11 @@ static gboolean swfdec_as_array_foreach_ ForeachSortData *fdat...
2007 Sep 04
0
4 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_video_movie_as.c test/trace
...decA gint32 idx; idx = swfdec_as_array_to_index (variable); - if (idx == -1) + if (idx == -1 || idx >= *length) return variable; return swfdec_as_double_to_string (object->context, *length - 1 - idx); @@ -761,7 +761,7 @@ swfdec_as_array_foreach_sort_rename (Swf gboolean after_undefined = FALSE; idx = swfdec_as_array_to_index (variable); - if (idx == -1) + if (idx == -1 || idx >= fdata->length) return variable; if (SWFDEC_AS_VALUE_IS_UNDEFINED (value)) @@ -796,7 +796,7 @@ swfdec_as_array_foreach_sort_indexedarra gboolean after_undefined = FALSE; idx...