GNOME Bugzilla – Bug 588104
array_length_type ignored for properties
Last modified: 2009-08-12 19:50:14 UTC
The array_length_type CCode attribute seems to be ignored for properties. A good example is GLib.ByteArray.data: [CCode (array_length_cname = "len", array_length_type = "guint")] public uint8[] data; Unfortunately, data.length is still treated as an int. There is some more background information in bug #586162
Another example is KeyFile.get_keys(). g_key_file_get_keys returns an array length as gsize, which means the variable size differs depending on the target platform. However, valac is always generating C code with an int, a problem on 64-bit platforms.
*** This bug has been marked as a duplicate of 529866 ***