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:
committed by
Sébastien Helleu
parent
917054c58d
commit
4e01c077d6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user