0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 10:08:56 +02:00

ircd::rfc1035: Cast to unsigned.

This commit is contained in:
Jason Volk 2019-08-03 17:02:21 -07:00
parent d394cd4d18
commit 47e2f92eda

View file

@ -447,7 +447,7 @@ ircd::rfc1035::make_name(const mutable_buffer &out,
{
pos,
tolower(labelbuf, label),
std::distance(pos, end(out))
size_t(std::max(std::distance(pos, end(out)), 0L)),
};
});