1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

tcl: fix return value for hdata_longlong

Using API_RETURN_LONG() here breaks tests on i368.
This commit is contained in:
LuK1337
2024-05-26 15:19:05 +02:00
committed by Sébastien Helleu
parent bc380447eb
commit 0ce38e7d58
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -14,6 +14,7 @@
[[v4.3.1_fixed]]
=== Fixed
* tcl: fix return value for hdata_longlong (issue #2119)
* tests: fix relay tests on s390x
* tests: fix check of php plugin
* tests: fix compilation of tests on Fedora 40 and Rocky 9.4
+6 -1
View File
@@ -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)