diff options
-rw-r--r-- | src/plugins/scripts/lua/weechat-lua-api.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/perl/weechat-perl-api.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/python/weechat-python-api.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/ruby/weechat-ruby-api.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/scripts/lua/weechat-lua-api.c b/src/plugins/scripts/lua/weechat-lua-api.c index 9e0431da1..b39a4fff4 100644 --- a/src/plugins/scripts/lua/weechat-lua-api.c +++ b/src/plugins/scripts/lua/weechat-lua-api.c @@ -2566,7 +2566,7 @@ weechat_lua_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); lua_argv[0] = script_ptr2str (buffer); lua_argv[1] = timebuffer; diff --git a/src/plugins/scripts/perl/weechat-perl-api.c b/src/plugins/scripts/perl/weechat-perl-api.c index b1081e00f..6e4736a9c 100644 --- a/src/plugins/scripts/perl/weechat-perl-api.c +++ b/src/plugins/scripts/perl/weechat-perl-api.c @@ -2113,7 +2113,7 @@ weechat_perl_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); perl_argv[0] = script_ptr2str (buffer); perl_argv[1] = timebuffer; 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; diff --git a/src/plugins/scripts/ruby/weechat-ruby-api.c b/src/plugins/scripts/ruby/weechat-ruby-api.c index 2439b1b36..2a3ad923e 100644 --- a/src/plugins/scripts/ruby/weechat-ruby-api.c +++ b/src/plugins/scripts/ruby/weechat-ruby-api.c @@ -2611,7 +2611,7 @@ weechat_ruby_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); ruby_argv[0] = script_ptr2str (buffer); ruby_argv[1] = timebuffer; |