diff options
author | Rosen Penev | 2020-12-23 17:19:26 -0800 |
---|---|---|
committer | Nikias Bassen | 2022-04-22 13:10:14 +0200 |
commit | c6ae88fa11232e198daeab808966301aea557e6c (patch) | |
tree | d8675399905736c2694a24557a01e23daf7ca91a /src | |
parent | 00131b56d15e62ec83ab3dca9cf5372140f9b255 (diff) | |
download | libimobiledevice-glue-c6ae88fa11232e198daeab808966301aea557e6c.tar.gz libimobiledevice-glue-c6ae88fa11232e198daeab808966301aea557e6c.tar.bz2 |
[clang-tidy] use uppercase numeric literals
Found with readability-uppercase-literal-suffix
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/utils.c | 8 |
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); |