summaryrefslogtreecommitdiff
path: root/src/plugins/python
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-08-12 18:36:45 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-08-12 18:36:45 +0200
commitaeeec38d6f0f90243199f2dbd96cc5261f329f0d (patch)
treeb446f1a3d51b83bcbb4a974b23e3eda5e55bbe5a /src/plugins/python
parent6e366095f9e37e94271b2148beeff551b1d8c963 (diff)
downloadweechat-aeeec38d6f0f90243199f2dbd96cc5261f329f0d.zip
core: fix cast of time_t (to "long long" instead of "long") (closes #1051)
Diffstat (limited to 'src/plugins/python')
-rw-r--r--src/plugins/python/weechat-python-api.c2
1 files changed, 1 insertions, 1 deletions
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);