Add BT_CTF_INTEGER_BASE_UNSPECIFIED
[babeltrace.git] / lib / ctf-ir / field-types.c
index 68ae5899a5dffd9baa527409bc94c081346cdd58..95fdda9f38eb2a07a5d6146984a05f5e0cb21fa5 100644 (file)
@@ -1073,6 +1073,7 @@ int bt_ctf_field_type_integer_set_base(struct bt_ctf_field_type *type,
        }
 
        switch (base) {
+       case BT_CTF_INTEGER_BASE_UNSPECIFIED:
        case BT_CTF_INTEGER_BASE_BINARY:
        case BT_CTF_INTEGER_BASE_OCTAL:
        case BT_CTF_INTEGER_BASE_DECIMAL:
@@ -3900,6 +3901,7 @@ const char *get_integer_base_string(enum bt_ctf_integer_base base)
 
        switch (base) {
        case BT_CTF_INTEGER_BASE_DECIMAL:
+       case BT_CTF_INTEGER_BASE_UNSPECIFIED:
                base_string = "decimal";
                break;
        case BT_CTF_INTEGER_BASE_HEXADECIMAL:
This page took 0.023654 seconds and 4 git commands to generate.