diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-11-10 16:34:56 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-11-10 16:34:56 +0100 |
commit | 11b3dd2874a60aec5ae286dc99f13bd4a5de4cd8 (patch) | |
tree | 5ec615e476c1b12f89f6293c224f28b58a0fca94 /src/core | |
parent | 9ff51e04eb4c98da96c4228c957dee9c53ec5278 (diff) | |
download | weechat-11b3dd2874a60aec5ae286dc99f13bd4a5de4cd8.zip |
Use type "unsigned long long" for API function string_format_size
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-string.c | 2 | ||||
-rw-r--r-- | src/core/wee-string.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c index 026797b39..b5fad5398 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -1283,7 +1283,7 @@ string_iconv_fprintf (FILE *file, const char *data, ...) */ char * -string_format_size (unsigned long size) +string_format_size (unsigned long long size) { char *unit_name[] = { N_("bytes"), N_("KB"), N_("MB"), N_("GB") }; char *unit_format[] = { "%.0f", "%.1f", "%.02f", "%.02f" }; diff --git a/src/core/wee-string.h b/src/core/wee-string.h index d0d29dc05..bb6377713 100644 --- a/src/core/wee-string.h +++ b/src/core/wee-string.h @@ -56,7 +56,7 @@ extern char *string_iconv_to_internal (const char *charset, const char *string); extern char *string_iconv_from_internal (const char *charset, const char *string); extern int string_iconv_fprintf (FILE *file, const char *data, ...); -extern char *string_format_size (unsigned long size); +extern char *string_format_size (unsigned long long size); extern void string_encode_base64 (const char *from, int length, char *to); extern int string_decode_base64 (const char *from, char *to); extern int string_is_command_char (const char *string); |