Fix: usage of `bt_value_array_get_length()`
[babeltrace.git] / src / lib / lib-logging.c
index 710aab62f780fbe1c367eb10b635faf2c460fb6f..ee11fad0ce5b0b682a0837f2acaf8dadf3b0c306 100644 (file)
@@ -909,9 +909,8 @@ static inline void format_value(char **buf_ch, bool extended,
        }
        case BT_VALUE_TYPE_ARRAY:
        {
-               int64_t count = bt_value_array_get_length(value);
+               uint64_t count = bt_value_array_get_length(value);
 
-               BT_ASSERT(count >= 0);
                BUF_APPEND(", %selement-count=%" PRId64, PRFIELD(count));
                break;
        }
This page took 0.023354 seconds and 4 git commands to generate.