summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/python/weechat-python-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/scripts/python/weechat-python-api.c')
-rw-r--r--src/plugins/scripts/python/weechat-python-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scripts/python/weechat-python-api.c b/src/plugins/scripts/python/weechat-python-api.c
index c1ea8821d..07598b143 100644
--- a/src/plugins/scripts/python/weechat-python-api.c
+++ b/src/plugins/scripts/python/weechat-python-api.c
@@ -2257,7 +2257,7 @@ weechat_python_api_hook_print_cb (void *data, struct t_gui_buffer *buffer,
script_callback = (struct t_script_callback *)data;
- snprintf (timebuffer, sizeof (timebuffer) - 1, "%ld", date);
+ snprintf (timebuffer, sizeof (timebuffer) - 1, "%ld", (long int)date);
python_argv[0] = script_ptr2str (buffer);
python_argv[1] = timebuffer;