🚨 fixed compiler warnings

This commit is contained in:
Niels Lohmann 2018-10-25 14:27:55 +02:00
parent 62126278a6
commit 19647e083c
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
5 changed files with 9 additions and 11 deletions

View file

@ -246,13 +246,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)