about summary refs log tree commit diff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-08-30T15·38+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-08-30T15·38+0200
commitd74c8a3f4e1131ee9dbd9898d141789832802306 (patch)
tree99e45fd0c08b740f06455eb6490543c521d5d1a3 /src/nix
parent6631a6e1a15784214bae468a4fdd3168aeef4ab7 (diff)
Fix 32-bit build
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/path-info.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nix/path-info.cc b/src/nix/path-info.cc
index b25e60db6a3f..d8b6232d47ca 100644
--- a/src/nix/path-info.cc
+++ b/src/nix/path-info.cc
@@ -1,11 +1,8 @@
 #include "command.hh"
 #include "shared.hh"
 #include "store-api.hh"
-
-
 #include "json.hh"
 
-
 #include <iomanip>
 #include <algorithm>
 
@@ -60,8 +57,8 @@ struct CmdPathInfo : StorePathsCommand
         for (auto & storePath : storePaths)
             pathLen = std::max(pathLen, storePath.size());
 
-        auto getClosureSize = [&](const Path & storePath) {
-            size_t totalSize = 0;
+        auto getClosureSize = [&](const Path & storePath) -> unsigned long long {
+            unsigned long long totalSize = 0;
             PathSet closure;
             store->computeFSClosure(storePath, closure, false, false);
             for (auto & p : closure)