fix warning (-Wuseless-cast)

This commit is contained in:
ITotalJustice 2020-08-18 09:39:07 +01:00
parent 3be6ee3525
commit 77a36942c6
2 changed files with 4 additions and 4 deletions

View File

@ -630,7 +630,7 @@ class binary_reader
case 0x9B: // array (eight-byte uint64_t for n follow)
{
std::uint64_t len{};
return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler);
return get_number(input_format_t::cbor, len) && get_cbor_array(len, tag_handler);
}
case 0x9F: // array (indefinite length)
@ -684,7 +684,7 @@ class binary_reader
case 0xBB: // map (eight-byte uint64_t for n follow)
{
std::uint64_t len{};
return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast<std::size_t>(len), tag_handler);
return get_number(input_format_t::cbor, len) && get_cbor_object(len, tag_handler);
}
case 0xBF: // map (indefinite length)

View File

@ -8277,7 +8277,7 @@ class binary_reader
case 0x9B: // array (eight-byte uint64_t for n follow)
{
std::uint64_t len{};
return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler);
return get_number(input_format_t::cbor, len) && get_cbor_array(len, tag_handler);
}
case 0x9F: // array (indefinite length)
@ -8331,7 +8331,7 @@ class binary_reader
case 0xBB: // map (eight-byte uint64_t for n follow)
{
std::uint64_t len{};
return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast<std::size_t>(len), tag_handler);
return get_number(input_format_t::cbor, len) && get_cbor_object(len, tag_handler);
}
case 0xBF: // map (indefinite length)