summaryrefslogtreecommitdiff
path: root/Userland/Utilities/df.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-02 00:00:52 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-03 08:42:39 +0200
commitb613817bcaada76f75289129e4987eafdaff6d87 (patch)
tree51978a2c44f29e0b730773e83d3eb368dd4a597e /Userland/Utilities/df.cpp
parentfdbe66a7b4b3fec0beba0eac8b78bf29841a5e9c (diff)
downloadserenity-b613817bcaada76f75289129e4987eafdaff6d87.zip
Userland: Fix 64-bit portability issues
Diffstat (limited to 'Userland/Utilities/df.cpp')
-rw-r--r--Userland/Utilities/df.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Utilities/df.cpp b/Userland/Utilities/df.cpp
index b0d1f0b106..03d83df991 100644
--- a/Userland/Utilities/df.cpp
+++ b/Userland/Utilities/df.cpp
@@ -71,9 +71,9 @@ int main(int argc, char** argv)
printf("%10s ", human_readable_size((total_block_count - free_block_count) * block_size).characters());
printf("%10s ", human_readable_size(free_block_count * block_size).characters());
} else {
- printf("%10" PRIu64 " ", total_block_count);
- printf("%10" PRIu64 " ", total_block_count - free_block_count);
- printf("%10" PRIu64 " ", free_block_count);
+ printf("%10" PRIu64 " ", (uint64_t)total_block_count);
+ printf("%10" PRIu64 " ", (uint64_t)(total_block_count - free_block_count));
+ printf("%10" PRIu64 " ", (uint64_t)free_block_count);
}
printf("%s", mount_point.characters());