[seed] Fix enum typing bug from commit cedbd78451



commit bac440a2733a2b59920b0078123a073db19b9f33
Author: Tim Horton <hortont424 gmail com>
Date:   Sat Jan 2 16:43:23 2010 -0500

    Fix enum typing bug from commit cedbd78451
    
    A glong/gint mismatch was wreaking havoc on various enums.
    It's clear why this was broken; g_value_info_get_value says
    that it returns a glong.

 libseed/seed-importer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libseed/seed-importer.c b/libseed/seed-importer.c
index 792aaed..8aa193a 100644
--- a/libseed/seed-importer.c
+++ b/libseed/seed-importer.c
@@ -122,7 +122,7 @@ seed_gi_importer_handle_enum (JSContextRef ctx,
   JSObjectRef enum_class;
   guint num_vals, i, j;
   gsize name_len;
-  glong value;
+  gint value; // TODO: investigate what's up with the glong/gint mystery here
   gchar *name;
   GIValueInfo *val;
 



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