🚨 fixed more compiler warnings
This commit is contained in:
parent
850922269d
commit
66dd1a846d
5 changed files with 8 additions and 12 deletions
|
@ -405,11 +405,9 @@ class json_sax_dom_callback_parser : public json_sax<BasicJsonType>
|
|||
|
||||
bool end_object() override
|
||||
{
|
||||
bool keep = true;
|
||||
if (ref_stack.back())
|
||||
{
|
||||
keep = callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back());
|
||||
if (not keep)
|
||||
if (not callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back()))
|
||||
{
|
||||
// discard object
|
||||
*ref_stack.back() = discarded;
|
||||
|
|
|
@ -1173,7 +1173,7 @@ scan_number_done:
|
|||
{
|
||||
// escape control characters
|
||||
char cs[9];
|
||||
snprintf(cs, 9, "<U+%.4hhX>", c);
|
||||
snprintf(cs, 9, "<U+%.4hhX>", static_cast<unsigned char>(c));
|
||||
result += cs;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue