Update CTF-Writer and CTF-IR copyrights
[babeltrace.git] / formats / ctf / ir / event-fields.c
index 973c9bdd395338bbc5370355393dd61a374fd85c..ac77cfb7bf3648f9ca8282b67b96d4eeb52c448f 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Babeltrace CTF Writer
  *
- * Copyright 2013 EfficiOS Inc.
+ * Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
  * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
@@ -269,6 +269,7 @@ int bt_ctf_field_sequence_set_length(struct bt_ctf_field *field,
 
        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;
@@ -612,7 +613,7 @@ const char *bt_ctf_field_enumeration_get_mapping_name(
        enumeration_type = container_of(field->type,
                struct bt_ctf_field_type_enumeration, parent);
 
-       if (integer_type->declaration.signedness) {
+       if (!integer_type->declaration.signedness) {
                uint64_t value;
                ret = bt_ctf_field_unsigned_integer_get_value(container,
                      &value);
This page took 0.042852 seconds and 4 git commands to generate.