- BT_ASSERT(bt_private_field_borrow_class(field) == fc->ir_fc);
- BT_ASSERT(bt_field_get_class_type(
- bt_field_borrow_from_private(field)) ==
- BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER ||
- bt_field_get_class_type(bt_field_borrow_from_private(field)) ==
- BT_FIELD_CLASS_TYPE_UNSIGNED_ENUMERATION);
- bt_private_field_unsigned_integer_set_value(field, value);
+ BT_ASSERT(bt_field_borrow_class_const(field) == fc->ir_fc);
+ BT_ASSERT(bt_field_get_class_type(field) ==
+ BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER ||
+ bt_field_get_class_type(field) ==
+ BT_FIELD_CLASS_TYPE_UNSIGNED_ENUMERATION);
+ bt_field_unsigned_integer_set_value(field, value);