diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-02 11:44:15 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-02 11:44:15 +0200 |
commit | d046315e8b4eb5d55ac92dd0835b96d6062e97f1 (patch) | |
tree | ba33467f049ce77597051438d9e98312134e0674 /src | |
parent | f9b04635d30b568edb4d7f732d79d0184d0a7ce5 (diff) | |
download | weechat-d046315e8b4eb5d55ac92dd0835b96d6062e97f1.zip |
api: fix function string_format_size on 32-bit systems
Diffstat (limited to 'src')
-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 de4443773..dd4b799eb 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -2300,13 +2300,13 @@ string_format_size (unsigned long long size) str_size[0] = '\0'; - if (size < 10UL * 1000UL) + if (size < 10ULL * 1000ULL) num_unit = 0; - else if (size < 1000UL * 1000UL) + else if (size < 1000ULL * 1000ULL) num_unit = 1; - else if (size < 1000UL * 1000UL * 1000UL) + else if (size < 1000ULL * 1000ULL * 1000ULL) num_unit = 2; - else if (size < 1000UL * 1000UL * 1000UL * 1000UL) + else if (size < 1000ULL * 1000ULL * 1000ULL * 1000ULL) num_unit = 3; else num_unit = 4; |