aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/gc.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-04-10 11:12:45 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-04-10 11:27:33 +0200
commit105f8ffc98d25e23c9a7eb5a5327e711b1e21e50 (patch)
tree0521d181dc8e9d753d0bb76cfbfd90376b4dbe61 /src/libstore/gc.cc
parent95295482ea629fd21992f564b8e4f1710a7a61e6 (diff)
Minor cleanup
Also, possible fix for #1310 on 32-bit systems.
Diffstat (limited to 'src/libstore/gc.cc')
-rw-r--r--src/libstore/gc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index 8e90913cc..0b03d61a7 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -679,7 +679,7 @@ void LocalStore::removeUnusedLinks(const GCState & state)
if (unlink(path.c_str()) == -1)
throw SysError(format("deleting ‘%1%’") % path);
- state.results.bytesFreed += st.st_blocks * 512;
+ state.results.bytesFreed += st.st_blocks * 512ULL;
}
struct stat st;