Add usz alias for std::size_t

This commit is contained in:
Nekotekina 2020-12-18 10:39:54 +03:00
parent 360c4d1554
commit fb29933d3d
173 changed files with 718 additions and 717 deletions

View file

@ -189,7 +189,7 @@ namespace psf
std::vector<def_table_t> indices; indices.reserve(psf.size());
// Generate indices and calculate key table length
std::size_t key_offset = 0, data_offset = 0;
usz key_offset = 0, data_offset = 0;
for (const auto& entry : psf)
{
@ -246,7 +246,7 @@ namespace psf
else if (fmt == format::string || fmt == format::array)
{
const std::string& value = entry.second.as_string();
const std::size_t size = std::min<std::size_t>(max, value.size());
const usz size = std::min<usz>(max, value.size());
if (value.size() + (fmt == format::string) > max)
{