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 /tests/unit/core | |
parent | f9b04635d30b568edb4d7f732d79d0184d0a7ce5 (diff) | |
download | weechat-d046315e8b4eb5d55ac92dd0835b96d6062e97f1.zip |
api: fix function string_format_size on 32-bit systems
Diffstat (limited to 'tests/unit/core')
-rw-r--r-- | tests/unit/core/test-string.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/core/test-string.cpp b/tests/unit/core/test-string.cpp index 85bbcc8a0..4ffe28761 100644 --- a/tests/unit/core/test-string.cpp +++ b/tests/unit/core/test-string.cpp @@ -29,10 +29,10 @@ extern "C" #include "../src/core/wee-string.h" } -#define ONE_KB 1000UL -#define ONE_MB (ONE_KB * 1000UL) -#define ONE_GB (ONE_MB * 1000UL) -#define ONE_TB (ONE_GB * 1000UL) +#define ONE_KB 1000ULL +#define ONE_MB (ONE_KB * 1000ULL) +#define ONE_GB (ONE_MB * 1000ULL) +#define ONE_TB (ONE_GB * 1000ULL) #define WEE_HAS_HL_STR(__result, __str, __words) \ LONGS_EQUAL(__result, string_has_highlight (__str, __words)); |