Replace std::string::npos with umax

This commit is contained in:
Nekotekina 2020-03-05 14:05:23 +03:00
parent 0a41999818
commit 7a8772dafa
18 changed files with 42 additions and 42 deletions

View file

@ -68,7 +68,7 @@ fs::file tar_object::get_file(std::string path)
{
TARHeader header = read_header(largest_offset);
if (std::string(header.magic).find("ustar") != std::string::npos)
if (std::string(header.magic).find("ustar") != umax)
m_map[header.name] = largest_offset;
int size = octalToDecimal(atoi(header.size));