about summary refs log tree commit diff
path: root/src/nix-env/nix-env.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-09-17T23·22+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-09-17T23·22+0200
commit4ba6bc184c80dbab1b52710c57ba3b926cfbef66 (patch)
tree4b786c557649b66b2c2dbd27b1b5b0021ee35633 /src/nix-env/nix-env.cc
parent3d91bfc8f89aab67eb1e92575edf7aacb7f5db25 (diff)
Shut up clang warnings
Diffstat (limited to 'src/nix-env/nix-env.cc')
-rw-r--r--src/nix-env/nix-env.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc
index 400b148e9ccf..313f8a8a8f35 100644
--- a/src/nix-env/nix-env.cc
+++ b/src/nix-env/nix-env.cc
@@ -1277,7 +1277,7 @@ static void opDeleteGenerations(Globals & globals, Strings opFlags, Strings opAr
         std::set<unsigned int> gens;
         for (auto & i : opArgs) {
             unsigned int n;
-            if (!string2Int(i, n) || n < 0)
+            if (!string2Int(i, n))
                 throw UsageError(format("invalid generation number ‘%1%’") % i);
             gens.insert(n);
         }