1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-19 09:34:47 +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
+1 -1
View File
@@ -2544,7 +2544,7 @@ weechat_python_api_hook_print_cb (const void *pointer, void *data,
if (ptr_function && ptr_function[0])
{
snprintf (timebuffer, sizeof (timebuffer), "%ld", (long int)date);
snprintf (timebuffer, sizeof (timebuffer), "%lld", (long long)date);
func_argv[0] = (ptr_data) ? (char *)ptr_data : empty_arg;
func_argv[1] = API_PTR2STR(buffer);