Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
length_type = container_of(length_field->type,
struct bt_ctf_field_type_integer, parent);
+ /* The length field must be unsigned */
if (length_type->declaration.signedness) {
ret = -1;
goto end;
* Set the sequence's length field.
*
* @param sequence Sequence field instance.
- * @param length_field Integer field instance indicating the sequence's length.
+ * @param length_field Unsigned integer field instance indicating the
+ * sequence's length.
*
* Returns 0 on success, a negative value on error.
*/