summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-02-25 16:12:54 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-02-25 16:12:54 +0100
commitc5887354bd0a507afb7ad6f8852f89899a489375 (patch)
treedcaac713b5d78f301689d1da6b824655c181bc89
parent3f08785aee5fd57834cf64e48212563f9d76e6af (diff)
downloadweechat-c5887354bd0a507afb7ad6f8852f89899a489375.zip
tcl: fix truncation of long integer returned by function hdata_long
-rw-r--r--ChangeLog.adoc1
-rw-r--r--src/plugins/tcl/weechat-tcl-api.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc
index 2ed6ffed8..0d1600685 100644
--- a/ChangeLog.adoc
+++ b/ChangeLog.adoc
@@ -38,6 +38,7 @@ Bug fixes::
* script: always display list of scripts when searching scripts with `/script search` (issue #2077)
* script: fix default mouse keys (issue #2076)
* scripts: fix crash on script unload when a hook is created in a buffer close callback (issue #2067)
+ * tcl: fix truncation of long integer returned by function hdata_long
* trigger: fix memory leak when adding a new trigger with `/trigger` command
Build::
diff --git a/src/plugins/tcl/weechat-tcl-api.c b/src/plugins/tcl/weechat-tcl-api.c
index 3f58141bd..5c1776d12 100644
--- a/src/plugins/tcl/weechat-tcl-api.c
+++ b/src/plugins/tcl/weechat-tcl-api.c
@@ -5561,7 +5561,7 @@ API_FUNC(hdata_long)
{
Tcl_Obj *objp;
char *hdata, *pointer, *name;
- int result;
+ long result;
API_INIT_FUNC(1, "hdata_long", API_RETURN_LONG(0));
if (objc < 4)