summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils.c b/src/utils.c
index f3d7bdc..0acbedc 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -196,16 +196,16 @@ LIBIMOBILEDEVICE_GLUE_API char *string_format_size(uint64_t size)
char buf[80];
double sz;
if (size >= 1000000000000LL) {
- sz = ((double)size / 1000000000000.0f);
+ sz = ((double)size / 1000000000000.0F);
sprintf(buf, "%0.1f TB", sz);
} else if (size >= 1000000000LL) {
- sz = ((double)size / 1000000000.0f);
+ sz = ((double)size / 1000000000.0F);
sprintf(buf, "%0.1f GB", sz);
} else if (size >= 1000000LL) {
- sz = ((double)size / 1000000.0f);
+ sz = ((double)size / 1000000.0F);
sprintf(buf, "%0.1f MB", sz);
} else if (size >= 1000LL) {
- sz = ((double)size / 1000.0f);
+ sz = ((double)size / 1000.0F);
sprintf(buf, "%0.1f KB", sz);
} else {
sprintf(buf, "%d Bytes", (int)size);