polish patch to remove ci errors

This commit is contained in:
Qianqian Fang 2022-02-28 12:48:18 -05:00
parent 4c9dd311bd
commit 5786991973
3 changed files with 6 additions and 14 deletions

View File

@ -2435,11 +2435,7 @@ class binary_reader
}
}
if (JSON_HEDLEY_UNLIKELY((!sax->end_array() || !sax->end_object())))
{
return false;
}
return true;
return (sax->end_array() && sax->end_object());
}
if (size_and_type.first != string_t::npos)

View File

@ -1609,11 +1609,11 @@ class binary_writer
};
string_t key = "_ArrayType_";
if (bjdtype.find(value.at(key)) == bjdtype.end())
if (bjdtype.find(std::string(value.at(key))) == bjdtype.end())
{
return 1;
}
CharType dtype = bjdtype[value.at(key)];
CharType dtype = bjdtype[std::string(value.at(key))];
key = "_ArraySize_";
std::size_t len = (value.at(key).empty() ? 0 : 1);

View File

@ -10811,11 +10811,7 @@ class binary_reader
}
}
if (JSON_HEDLEY_UNLIKELY((!sax->end_array() || !sax->end_object())))
{
return false;
}
return true;
return (sax->end_array() && sax->end_object());
}
if (size_and_type.first != string_t::npos)
@ -15505,11 +15501,11 @@ class binary_writer
};
string_t key = "_ArrayType_";
if (bjdtype.find(value.at(key)) == bjdtype.end())
if (bjdtype.find(std::string(value.at(key))) == bjdtype.end())
{
return 1;
}
CharType dtype = bjdtype[value.at(key)];
CharType dtype = bjdtype[std::string(value.at(key))];
key = "_ArraySize_";
std::size_t len = (value.at(key).empty() ? 0 : 1);