mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd: Fix signage related.
This commit is contained in:
parent
4ac88356d9
commit
968ef4115c
2 changed files with 4 additions and 4 deletions
|
@ -1312,7 +1312,7 @@ size_t
|
|||
ircd::json::array::serialized(const it &b,
|
||||
const it &e)
|
||||
{
|
||||
const size_t ret(1 + !std::distance(b, e));
|
||||
const size_t ret(1 + (b == e));
|
||||
return std::accumulate(b, e, ret, []
|
||||
(auto ret, const string_view &value)
|
||||
{
|
||||
|
@ -1489,7 +1489,7 @@ size_t
|
|||
ircd::json::serialized(const member *const &begin,
|
||||
const member *const &end)
|
||||
{
|
||||
const size_t ret(1 + !std::distance(begin, end));
|
||||
const size_t ret(1 + (begin == end));
|
||||
return std::accumulate(begin, end, ret, []
|
||||
(auto ret, const auto &member)
|
||||
{
|
||||
|
@ -1646,7 +1646,7 @@ ircd::json::serialized(const value *const &begin,
|
|||
const value *const &end)
|
||||
{
|
||||
// One opening '[' and either one ']' or comma count.
|
||||
const size_t ret(1 + !std::distance(begin, end));
|
||||
const size_t ret(1 + (begin == end));
|
||||
return std::accumulate(begin, end, size_t(ret), []
|
||||
(auto ret, const value &v)
|
||||
{
|
||||
|
|
|
@ -1855,7 +1855,7 @@ noexcept
|
|||
// If the content is chunked encoding and the tag is in the phase of
|
||||
// receiving the chunk head we have to copy what's been received of that
|
||||
// head so far so the grammar can parse a coherent head to continue.
|
||||
if(tag.state.chunk_length == -1)
|
||||
if(tag.state.chunk_length == size_t(-1))
|
||||
{
|
||||
const const_buffer src
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue