From 2475ba43a3a3a5b9c894d71c91cd1c598b60039b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 1 Aug 2022 20:13:01 +0200 Subject: javascript: fix return of long value in functions infolist_time, hdata_long and hdata_time --- ChangeLog.adoc | 1 + src/plugins/javascript/weechat-js-api.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index ea4b6228c..e832e6a2c 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -30,6 +30,7 @@ Bug fixes:: * irc: fix duplicated channels in autojoin option when autojoin_dynamic is enabled (issue #1795) * irc: fix display of TOPIC and QUIT messages with an empty trailing parameter (issue #1797) + * javascript: fix return of long value in functions infolist_time, hdata_long and hdata_time * relay: fix parsing of IRC messages received from clients (issue #1796) * xfer: fix crash when closing DCC chat buffer diff --git a/src/plugins/javascript/weechat-js-api.cpp b/src/plugins/javascript/weechat-js-api.cpp index 271108387..c042b7775 100644 --- a/src/plugins/javascript/weechat-js-api.cpp +++ b/src/plugins/javascript/weechat-js-api.cpp @@ -116,7 +116,7 @@ extern "C" #define API_RETURN_INT(__int) \ return v8::Integer::New(__int) #define API_RETURN_LONG(__int) \ - return v8::Integer::New(__int) + return v8::Number::New(__int) /* -- cgit v1.2.3