diff options
-rw-r--r-- | src/core/wee-string.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c index 72e7dd6ac..b6ee3ee40 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -2295,13 +2295,13 @@ string_format_size (unsigned long long size) str_size[0] = '\0'; - if (size < 10L * 1000L) + if (size < 10UL * 1000UL) num_unit = 0; - else if (size < 1000L * 1000L) + else if (size < 1000UL * 1000UL) num_unit = 1; - else if (size < 1000L * 1000L * 1000L) + else if (size < 1000UL * 1000UL * 1000UL) num_unit = 2; - else if (size < 1000L * 1000L * 1000L * 1000L) + else if (size < 1000UL * 1000UL * 1000UL * 1000UL) num_unit = 3; else num_unit = 4; |