Fix signed-unsigned comparisons and mark warning as error (part 2).

This commit is contained in:
Nekotekina 2020-02-19 20:03:59 +03:00
parent 771eff273b
commit 92e3eaf3ff
68 changed files with 194 additions and 202 deletions

View file

@ -58,7 +58,7 @@ bool vfs::mount(std::string_view vpath, std::string_view path)
return false;
}
if (pos == -1)
if (pos == umax)
{
// Mounting completed
list.back()->path = path;
@ -146,7 +146,7 @@ std::string vfs::get(std::string_view vpath, std::vector<std::string>* out_dir,
return fs::get_config_dir() + "delete_this_dir.../delete_this...";
}
if (pos == -1)
if (pos == umax)
{
// Absolute path: finalize
for (auto it = list.rbegin(), rend = list.rend(); it != rend; it++)