1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +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 917054c58d
commit 4e01c077d6
+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)