1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-24 03:46:39 +02:00

scripts: fix issue with long interval in function hook_timer

Affected plugins: python, ruby, lua, tcl, guile, javascript, php.
This commit is contained in:
Sébastien Helleu
2022-08-01 22:18:38 +02:00
parent b1404b0277
commit bcb8647aa4
11 changed files with 35 additions and 14 deletions
+3 -2
View File
@@ -2264,7 +2264,8 @@ weechat_python_api_hook_timer_cb (const void *pointer, void *data,
API_FUNC(hook_timer)
{
int interval, align_second, max_calls;
long interval;
int align_second, max_calls;
char *function, *data;
const char *result;
@@ -2274,7 +2275,7 @@ API_FUNC(hook_timer)
max_calls = 0;
function = NULL;
data = NULL;
if (!PyArg_ParseTuple (args, "iiiss", &interval, &align_second, &max_calls,
if (!PyArg_ParseTuple (args, "liiss", &interval, &align_second, &max_calls,
&function, &data))
API_WRONG_ARGS(API_RETURN_EMPTY);