diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-26 16:24:16 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-26 16:24:16 +0200 |
commit | 96f9942aed052b025cce2c1251019d68c1bff3d3 (patch) | |
tree | 870b7b80ef08802471b8c49ab9b4e84b8736d074 /src/plugins | |
parent | 449e5ae7058b858389c6fbf83d1cf432d3cb6433 (diff) | |
download | weechat-96f9942aed052b025cce2c1251019d68c1bff3d3.zip |
php: fix return value of function hdata_longlong
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/php/weechat-php-api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/php/weechat-php-api.c b/src/plugins/php/weechat-php-api.c index 709704191..289d50ea4 100644 --- a/src/plugins/php/weechat-php-api.c +++ b/src/plugins/php/weechat-php-api.c @@ -81,6 +81,7 @@ RETURN_STRING(""); #define API_RETURN_INT(__int) RETURN_LONG(__int) #define API_RETURN_LONG(__long) RETURN_LONG(__long) +#define API_RETURN_LONGLONG(__longlong) RETURN_DOUBLE(__longlong) #define weechat_php_get_function_name(__zfunc, __str) \ const char *(__str); \ do \ @@ -5545,7 +5546,7 @@ API_FUNC(hdata_longlong) result = weechat_hdata_longlong (hdata, pointer, (const char *)name); - API_RETURN_LONG(result); + API_RETURN_LONGLONG(result); } API_FUNC(hdata_string) |