summaryrefslogtreecommitdiffstats
path: root/src/basic/format-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/format-util.c')
-rw-r--r--src/basic/format-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/format-util.c b/src/basic/format-util.c
index 04ed4be941..9920604f3a 100644
--- a/src/basic/format-util.c
+++ b/src/basic/format-util.c
@@ -47,7 +47,7 @@ char *format_bytes_full(char *buf, size_t l, uint64_t t, FormatBytesFlag flag) {
assert_cc(ELEMENTSOF(table_iec) == ELEMENTSOF(table_si));
- if (t == (uint64_t) -1)
+ if (t == UINT64_MAX)
return NULL;
table = flag & FORMAT_BYTES_USE_IEC ? table_iec : table_si;