]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Use appropriate type for size delta
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 16 Sep 2020 13:52:55 +0000 (15:52 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 17 Sep 2020 20:17:51 +0000 (22:17 +0200)
src/compress.cpp

index bcc2d4011dc389f89e473a1a75ec284e2e7792cd..b73dfae0cb4532300f070988e801ac73ed5e208f 100644 (file)
@@ -197,7 +197,7 @@ recompress_file(RecompressionStatistics& statistics,
   atomic_new_file.commit();
   auto new_stat = Stat::stat(cache_file.path(), Stat::OnError::log);
 
-  const size_t size_delta =
+  const uint64_t size_delta =
     (new_stat.size_on_disk() - old_stat.size_on_disk()) / 1024;
   Statistics::update(stats_file, [=](Counters& cs) {
     cs.increment(Statistic::cache_size_kibibyte, size_delta);