1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26: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
@@ -2376,7 +2376,8 @@ API_FUNC(hook_timer)
zend_long z_interval, z_align_second, z_max_calls;
zval *z_callback;
zend_string *z_data;
int interval, align_second, max_calls;
long interval;
int align_second, max_calls;
char *data;
const char *result;
@@ -2386,7 +2387,7 @@ API_FUNC(hook_timer)
&z_data) == FAILURE)
API_WRONG_ARGS(API_RETURN_EMPTY);
interval = (int)z_interval;
interval = (long)z_interval;
align_second = (int)z_align_second;
max_calls = (int)z_max_calls;
weechat_php_get_function_name (z_callback, callback_name);