- BT_ASSERT_PRE_NON_NULL(float_obj, "Value object");
- BT_ASSERT_PRE_VALUE_IS_TYPE(float_obj, BT_VALUE_TYPE_FLOAT);
- BT_ASSERT_PRE_VALUE_HOT(float_obj, "Value object");
- BT_VALUE_TO_FLOAT(float_obj)->value = val;
- BT_LOGV("Set floating point number value's raw value: value-addr=%p, value=%f",
- float_obj, val);
- return BT_VALUE_STATUS_OK;
+ BT_ASSERT_PRE_NON_NULL(real_obj, "Value object");
+ BT_ASSERT_PRE_VALUE_IS_TYPE(real_obj, BT_VALUE_TYPE_REAL);
+ BT_ASSERT_PRE_VALUE_HOT(real_obj, "Value object");
+ BT_VALUE_TO_REAL(real_obj)->value = val;
+ BT_LOGV("Set real number value's raw value: value-addr=%p, value=%f",
+ real_obj, val);