Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kill two warnings #140

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4678,7 +4678,7 @@ class basic_json
if (c >= 0x00 and c <= 0x1f)
{
// print character c as \uxxxx
sprintf(&result[pos + 1], "u%04x", int(c));
sprintf_s(&result[pos + 1],result.size(),"u%04x", int(c));
pos += 6;
// overwrite trailing null character
result[pos] = '\\';
Expand Down Expand Up @@ -4910,7 +4910,7 @@ class basic_json
static constexpr difference_type end_value = begin_value + 1;

/// iterator as signed integer type
difference_type m_it = std::numeric_limits<std::ptrdiff_t>::min();
difference_type m_it = std::numeric_limits<std::ptrdiff_t>::denorm_min();
};

/*!
Expand Down