From c6ae88fa11232e198daeab808966301aea557e6c Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 23 Dec 2020 17:19:26 -0800 Subject: [clang-tidy] use uppercase numeric literals Found with readability-uppercase-literal-suffix Signed-off-by: Rosen Penev --- src/utils.c | 8 ++++---- 1 file 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); -- cgit v1.1-32-gdbae