1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-28 12:02:00 +03:00

🚨 fixed compiler warnings

This commit is contained in:
Niels Lohmann
2018-10-25 14:27:55 +02:00
parent 62126278a6
commit 19647e083c
5 changed files with 9 additions and 11 deletions

View File

@ -6547,13 +6547,13 @@ class binary_reader
case 0x10: // int32
{
std::int32_t value;
return get_number<std::int32_t, true>(input_format_t::bson, value) and sax->number_integer(static_cast<std::int32_t>(value));
return get_number<std::int32_t, true>(input_format_t::bson, value) and sax->number_integer(value);
}
case 0x12: // int64
{
std::int64_t value;
return get_number<std::int64_t, true>(input_format_t::bson, value) and sax->number_integer(static_cast<std::int64_t>(value));
return get_number<std::int64_t, true>(input_format_t::bson, value) and sax->number_integer(value);
}
default: // anything else not supported (yet)
@ -11161,6 +11161,7 @@ class serializer
continue;
}
}
break;
}
default: // decode found yet incomplete multi-byte code point