forked from lix-project/lix
Merge pull request #9041 from trofi/profiles-sign
src/libstore/profiles.cc: fix comparison of sign difference
(cherry picked from commit 1da1642527f73089947b7bd2de46147a44700ac8)
Change-Id: I8f23d32ad66b797ff58eb2bd15b2f7741f47cd99
This commit is contained in:
parent
bc4aa3d5db
commit
79dd9efe38
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ void deleteGenerationsGreaterThan(const Path & profile, GenerationNumber max, bo
|
||||||
iterDropUntil(gens, i, [&](auto & g) { return g.number == curGen; });
|
iterDropUntil(gens, i, [&](auto & g) { return g.number == curGen; });
|
||||||
|
|
||||||
// Skip over `max` generations, preserving them
|
// Skip over `max` generations, preserving them
|
||||||
for (auto keep = 0; i != gens.rend() && keep < max; ++i, ++keep);
|
for (GenerationNumber keep = 0; i != gens.rend() && keep < max; ++i, ++keep);
|
||||||
|
|
||||||
// Delete the rest
|
// Delete the rest
|
||||||
for (; i != gens.rend(); ++i)
|
for (; i != gens.rend(); ++i)
|
||||||
|
|
Loading…
Reference in a new issue