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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user