Fix enum typing bug from commit cedbd78451
authorTim Horton <hortont424@gmail.com>
Sat, 2 Jan 2010 21:43:23 +0000 (16:43 -0500)
committerTim Horton <hortont424@gmail.com>
Sat, 2 Jan 2010 21:43:23 +0000 (16:43 -0500)
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

index 792aaed..8aa193a 100644 (file)
@@ -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;