diff options
Diffstat (limited to 'third_party/nix/src/nix/path-info.cc')
-rw-r--r-- | third_party/nix/src/nix/path-info.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/nix/src/nix/path-info.cc b/third_party/nix/src/nix/path-info.cc index dca08b06adbb..300a588a2ef9 100644 --- a/third_party/nix/src/nix/path-info.cc +++ b/third_party/nix/src/nix/path-info.cc @@ -96,7 +96,9 @@ struct CmdPathInfo final : StorePathsCommand, MixJSON { if (showSize || showClosureSize || showSigs) { std::cout << std::string( - std::max(0, (int)pathLen - (int)storePath.size()), ' '); + std::max(0, static_cast<int>(pathLen) - + static_cast<int>(storePath.size())), + ' '); } if (showSize) { |