From aeeec38d6f0f90243199f2dbd96cc5261f329f0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 12 Aug 2017 18:36:45 +0200 Subject: core: fix cast of time_t (to "long long" instead of "long") (closes #1051) --- src/plugins/python/weechat-python-api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/python') diff --git a/src/plugins/python/weechat-python-api.c b/src/plugins/python/weechat-python-api.c index 93e932a31..cddaf1691 100644 --- a/src/plugins/python/weechat-python-api.c +++ b/src/plugins/python/weechat-python-api.c @@ -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); -- cgit v1.2.3