task 2 - 4358

This commit is contained in:
Muhammad Arif bin Mohamad Ghazaly 2024-11-29 22:37:50 -05:00
parent 1b9a9d1f21
commit 765e7536b5
2 changed files with 2 additions and 10 deletions

View File

@ -378,12 +378,8 @@ inline void from_json(const BasicJsonType& j, ArithmeticType& val)
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
break;
}
case value_t::boolean:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::boolean_t*>());
break;
}
case value_t::boolean:
case value_t::null:
case value_t::object:
case value_t::array:

View File

@ -5051,12 +5051,8 @@ inline void from_json(const BasicJsonType& j, ArithmeticType& val)
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
break;
}
case value_t::boolean:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::boolean_t*>());
break;
}
case value_t::boolean:
case value_t::null:
case value_t::object:
case value_t::array: