summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2011-07-02 16:04:17 +0200
committerGiovanni Campagna <gcampagna@src.gnome.org>2011-08-18 15:15:06 +0200
commit4c90020f97be3b7a65287a80784b0e453a729fcc (patch)
tree28e0005f7905839d8d5794ea73553f3dfc47c552 /tests
parent8a4e168dec871fca394f1bc24f80f9a6abb8ceec (diff)
downloadgobject-introspection-4c90020f97be3b7a65287a80784b0e453a729fcc.tar.gz
Disallow non byte types for GByteArrays
Similarly to GPtrArrays, GByteArrays can only contain bytes. Emit a warning if an inconsistent (element-type) is placed, and ensure that the default is guint8 if nothing is added. This way bindings can support GByteArrays without special casing them. https://bugzilla.gnome.org/show_bug.cgi?id=652753
Diffstat (limited to 'tests')
-rw-r--r--tests/gimarshallingtests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index 279831be..e8300812 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -2009,7 +2009,7 @@ gi_marshalling_tests_bytearray_full_return (void)
/**
* gi_marshalling_tests_bytearray_none_in:
- * @array_: (element-type gint) (transfer none):
+ * @array_: (element-type gint8) (transfer none):
*/
void
gi_marshalling_tests_bytearray_none_in (GByteArray *array_)