Commit 592cfde5 authored by Philip Trettner's avatar Philip Trettner
Browse files

fixed signed warning

parent d1881c0f
......@@ -29,7 +29,7 @@ inline bool is_valid_permutation(std::vector<int> const& p)
for (auto i = 0u; i < p.size(); ++i)
{
auto pi = p[i];
if (pi < 0 || pi >= p.size())
if (pi < 0 || pi >= (int)p.size())
return false; // out of bound
if (r[pi] != -1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment