mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Add usz alias for std::size_t
This commit is contained in:
parent
360c4d1554
commit
fb29933d3d
173 changed files with 718 additions and 717 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue