summaryrefslogtreecommitdiff
path: root/src/plugins/perl
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-08-01 20:32:09 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-08-01 20:32:09 +0200
commit1514570ff02967b40ad3f72e301a574ed49d29ab (patch)
tree0d3f8d1b8ed754d67d18454291b4c9d9607f6a15 /src/plugins/perl
parent2475ba43a3a3a5b9c894d71c91cd1c598b60039b (diff)
downloadweechat-1514570ff02967b40ad3f72e301a574ed49d29ab.zip
scripts: fix issue with year ≥ 2038 in function infolist_new_var_time
Affected plugins: python, lua, tcl, guile, javascript.
Diffstat (limited to 'src/plugins/perl')
-rw-r--r--src/plugins/perl/weechat-perl-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/perl/weechat-perl-api.c b/src/plugins/perl/weechat-perl-api.c
index 895730620..88b491217 100644
--- a/src/plugins/perl/weechat-perl-api.c
+++ b/src/plugins/perl/weechat-perl-api.c
@@ -4594,7 +4594,7 @@ API_FUNC(infolist_new_var_time)
result = API_PTR2STR(weechat_infolist_new_var_time (API_STR2PTR(item),
name,
- SvIV (ST (2)))); /* value */
+ (time_t)SvIV (ST (2)))); /* value */
API_RETURN_STRING(result);
}