Change Gtype conversion to use long
authorroot <alan@akbkhome.com>
Wed, 24 Feb 2010 05:32:54 +0000 (13:32 +0800)
committerroot <alan@akbkhome.com>
Wed, 24 Feb 2010 05:32:54 +0000 (13:32 +0800)
After reading the commit history - one of the notes mentioned that Gtypes should be long..

libseed/seed-types.c

index 97f448d..defc766 100644 (file)
@@ -291,7 +291,7 @@ seed_gi_make_jsarray (JSContextRef ctx,
       elements = g_alloca (sizeof (JSValueRef) * length);
 
       for (i = 0; i < length; ++i)
-          elements[i] = seed_value_from_int (ctx, ptr[i], exception);
+          elements[i] = seed_value_from_long (ctx, ptr[i], exception);
         
       return (JSValueRef) JSObjectMakeArray (ctx, length, elements, exception);