[seed] Fixing some build warnings in seed-types.c



commit 8af07e6ec714ba4d1167706b9d68d75047851b08
Author: Danilo Cesar Lemes de Paula <danilo cesar collabora co uk>
Date:   Thu Jan 28 13:46:53 2016 -0200

    Fixing some build warnings in seed-types.c
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761150
    
    After a quick discussion we concluded that this was the best way to
    get ride of those build warnings.

 libseed/seed-types.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libseed/seed-types.c b/libseed/seed-types.c
index db63f30..16560bd 100644
--- a/libseed/seed-types.c
+++ b/libseed/seed-types.c
@@ -1402,7 +1402,7 @@ seed_value_from_gvalue_for_signal (JSContextRef ctx, GValue * gval,
 
   if (g_type_is_a (G_VALUE_TYPE (gval), G_TYPE_STRV))
     {
-      return seed_value_from_strv(ctx, g_value_get_boxed (gval), exception);
+      return seed_value_from_strv(ctx, (GStrv *) g_value_get_boxed (gval), exception);
     }
 
 
@@ -2849,7 +2849,7 @@ seed_value_from_strv (JSContextRef ctx,
       GArray *js_string_array = g_array_new (FALSE, FALSE, sizeof(gpointer));
       for (; *val != NULL; val++)
        {
-         JSStringRef js_string = seed_value_from_string (ctx, *val, exception);
+         JSValueRef js_string = seed_value_from_string (ctx, (char *)*val, exception);
          js_string_array = g_array_append_val(js_string_array, js_string);
        }
       JSValueRef res = JSObjectMakeArray (ctx,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]