search for: g_minint32

Displaying 7 results from an estimated 7 matches for "g_minint32".

2007 Oct 10
0
libswfdec/swfdec_as_context.c
...text.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)
2007 Oct 11
0
2 commits - libswfdec/swfdec_text_format.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h
...* if (SWFDEC_AS_VALUE_IS_OBJECT (&argv[0])) swfdec_as_value_to_string (cx, &argv[0]); - SWFDEC_XML (object)->status = swfdec_as_value_to_number (cx, &argv[0]); + d = swfdec_as_value_to_number (cx, &argv[0]); + if (!isfinite (d)) + SWFDEC_XML (object)->status = G_MININT32; + else + SWFDEC_XML (object)->status = (int) d; } static const char * diff --git a/libswfdec/swfdec_xml.h b/libswfdec/swfdec_xml.h index c06562d..e0e8cc8 100644 --- a/libswfdec/swfdec_xml.h +++ b/libswfdec/swfdec_xml.h @@ -55,7 +55,7 @@ struct _SwfdecXml { SwfdecXmlNode xml_node;...
2012 Mar 27
16
[PATCH 01/16] generator: Fix unescaped '<' and '>' in api descriptions
--- generator/generator_actions.ml | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 68a7bf6..fcf363f 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -4664,7 +4664,7 @@ This creates an ext2/3/4 filesystem on C<device> with an external journal on
2012 Jan 17
3
GObject bindings
This is the first iteration of the GObject bindings. I have 'kicked the tyres' on these, meaning I have ensured that a bunch of basic manual tests work as expected. I'm in the process of adding more comprehensive tests. Here's an example simple javascript program which uses these bindings: === const Guestfs = imports.gi.Guestfs; print('Starting'); var g = new
2012 Jan 20
11
[PATCH 01/10] Revert "Revert "generator: Add CamelName flag""
This reverts commit 3f6ca541c7b24d4c86688a509582cb41a7e0078c. The original commit was reverted prematurely. --- generator/generator_actions.ml | 10 +++++----- generator/generator_checks.ml | 5 +++++ generator/generator_types.ml | 3 +++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index
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
...tate->atoms); - if (ale == NULL) { - compile_state_error (state, "Failed to add double %g", d); - return 0; - } - return ALE_INDEX (ale); -} - -static jsatomid -atomize_int32 (CompileState *state, int i) -{ - JSAtom *atom; - JSAtomListElement *ale; - - g_assert (i >= G_MININT32 && i <= G_MAXINT32); - atom = js_AtomizeInt (state->cx, i, 0); - ale = js_IndexAtom (state->cx, atom, &state->atoms); - if (ale == NULL) { - compile_state_error (state, "Failed to add int %d", i); - return 0; - } - return ALE_INDEX (ale); -} - -#defi...
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
...cial case, call toString of objects - if (SWFDEC_AS_VALUE_IS_OBJECT (&argv[0])) - swfdec_as_value_to_string (cx, &argv[0]); - + swfdec_as_value_to_string (cx, &argv[0]); d = swfdec_as_value_to_number (cx, &argv[0]); if (!isfinite (d)) - SWFDEC_XML (object)->status = G_MININT32; + SWFDEC_XML (object)->status = 0; else - SWFDEC_XML (object)->status = (int) d; + SWFDEC_XML (object)->status = d; } static const char * commit 92fb23847d15f6f8fe3a6ce6f291ff03ced1858c Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Thu Dec 20 16:35:53 2007...