diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-07-25 22:23:46 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-07-25 22:23:46 +0200 |
commit | 0693ffb82b870813970292c6f4e449eba2ab90b8 (patch) | |
tree | 75c68dfab9d3958f98d36aded4941c05c6690a9c | |
parent | db01880bd18af193013e001c64ae40df130cd0de (diff) | |
download | weechat-0693ffb82b870813970292c6f4e449eba2ab90b8.zip |
core: fix compilation warning on GNU/Hurd about unsigned long numbers
-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; |