1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 08:43:13 +02:00

core: fix cast of time_t (to "long long" instead of "long") (closes #1051)

This commit is contained in:
Sébastien Helleu
2017-08-12 18:36:45 +02:00
parent 6e366095f9
commit aeeec38d6f
24 changed files with 66 additions and 65 deletions
+3 -3
View File
@@ -128,10 +128,10 @@ end:
break;
case WEECHAT_HDATA_TIME:
snprintf (str_value, sizeof (str_value),
"%ld",
"%lld",
(ptr_buffer) ?
(long int)weechat_hdata_time (buflist_hdata_buffer,
ptr_buffer, list_keys[i]) : -1);
(long long)weechat_hdata_time (buflist_hdata_buffer,
ptr_buffer, list_keys[i]) : -1);
weechat_hashtable_set (info, list_keys[i], str_value);
break;
default: /* ignore other types */