Skip to content
Snippets Groups Projects
Commit d74c8a3f authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

Fix 32-bit build

parent 6631a6e1
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,11 @@ void toJSON(std::ostream & str, const char * s)
if (!s) str << "null"; else toJSON(str, s, s + strlen(s));
}
void toJSON(std::ostream & str, unsigned long long n)
{
str << n;
}
void toJSON(std::ostream & str, unsigned long n)
{
str << n;
......
......@@ -9,6 +9,7 @@ namespace nix {
void toJSON(std::ostream & str, const char * start, const char * end);
void toJSON(std::ostream & str, const std::string & s);
void toJSON(std::ostream & str, const char * s);
void toJSON(std::ostream & str, unsigned long long n);
void toJSON(std::ostream & str, unsigned long n);
void toJSON(std::ostream & str, long n);
void toJSON(std::ostream & str, double f);
......
#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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment