diff options
author | LuK1337 <priv.luk@gmail.com> | 2024-05-26 15:19:05 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-26 15:59:12 +0200 |
commit | 4e01c077d6ef6516e00b9e55cbf92a741a1d1239 (patch) | |
tree | 22533dc409e271211cd3e061139b566acbef4037 | |
parent | 917054c58d178939e3a598be3caf2e4f81b8be2e (diff) | |
download | weechat-4e01c077d6ef6516e00b9e55cbf92a741a1d1239.zip |
tcl: fix return value for hdata_longlong
Using API_RETURN_LONG() here breaks tests on i368.
-rw-r--r-- | src/plugins/tcl/weechat-tcl-api.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/tcl/weechat-tcl-api.c b/src/plugins/tcl/weechat-tcl-api.c index 487ad5d97..6bef61433 100644 --- a/src/plugins/tcl/weechat-tcl-api.c +++ b/src/plugins/tcl/weechat-tcl-api.c @@ -125,6 +125,11 @@ Tcl_SetObjResult (interp, Tcl_NewLongObj (__long)); \ return TCL_OK; \ } +#define API_RETURN_LONGLONG(__longlong) \ + { \ + Tcl_SetObjResult (interp, Tcl_NewWideIntObj (__longlong)); \ + return TCL_OK; \ + } #define API_RETURN_OBJ(__obj) \ { \ Tcl_SetObjResult (interp, __obj); \ @@ -5368,7 +5373,7 @@ API_FUNC(hdata_longlong) API_STR2PTR(pointer), name); - API_RETURN_LONG(result); + API_RETURN_LONGLONG(result); } API_FUNC(hdata_string) |