From 96f9942aed052b025cce2c1251019d68c1bff3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 26 May 2024 16:24:16 +0200 Subject: [PATCH] php: fix return value of function hdata_longlong --- CHANGELOG.md | 3 ++- src/plugins/php/weechat-php-api.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4455a87f5..c11111d1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,8 @@ ### Fixed -- tcl: fix return value for hdata_longlong ([#2119](https://github.com/weechat/weechat/issues/2119)) +- php: fix return value of function hdata_longlong +- tcl: fix return value of function hdata_longlong ([#2119](https://github.com/weechat/weechat/issues/2119)) - tests: fix relay tests on s390x ([#2118](https://github.com/weechat/weechat/issues/2118)) - tests: fix check of php plugin ([#2117](https://github.com/weechat/weechat/issues/2117)) - tests: fix compilation of tests on Fedora 40 ([#2116](https://github.com/weechat/weechat/issues/2116)) 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)