summaryrefslogtreecommitdiff
path: root/src/plugins/python
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-08-01 22:18:38 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-08-01 22:18:38 +0200
commitbcb8647aa47ae2213bedbdd3506d5af3a7c60c10 (patch)
treef21ee78d4c8c344c3d4155b3e31e1bca1d5d8bf2 /src/plugins/python
parentb1404b02777c58d5e104082f349dff201bd12ef8 (diff)
downloadweechat-bcb8647aa47ae2213bedbdd3506d5af3a7c60c10.zip
scripts: fix issue with long interval in function hook_timer
Affected plugins: python, ruby, lua, tcl, guile, javascript, php.
Diffstat (limited to 'src/plugins/python')
-rw-r--r--src/plugins/python/weechat-python-api.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/python/weechat-python-api.c b/src/plugins/python/weechat-python-api.c
index cab0040dc..b823f1967 100644
--- a/src/plugins/python/weechat-python-api.c
+++ b/src/plugins/python/weechat-python-api.c
@@ -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);