refactored into one line to satisfy lcov

This commit is contained in:
Cameron T. Druyor 2016-04-30 13:44:36 -04:00
parent fbcf15098f
commit 2e4d493926
2 changed files with 2 additions and 8 deletions

View File

@ -6267,10 +6267,7 @@ class basic_json
// remove '+' sign from the exponent if necessary
if (not m_type.bits.exp_plus)
{
if (len > static_cast<int>(sizeof(buf)))
{
len = sizeof(buf);
}
len = std::min(len, static_cast<int>(sizeof(buf)));
for (int i = 0; i < len; i++)
{
if (buf[i] == '+')

View File

@ -6267,10 +6267,7 @@ class basic_json
// remove '+' sign from the exponent if necessary
if (not m_type.bits.exp_plus)
{
if (len > static_cast<int>(sizeof(buf)))
{
len = sizeof(buf);
}
len = std::min(len, static_cast<int>(sizeof(buf)));
for (int i = 0; i < len; i++)
{
if (buf[i] == '+')