diff --git a/interop/src/cpp/cangjie/convertors-cj.h b/interop/src/cpp/cangjie/convertors-cj.h index 6be1eb8eaad9a1cf86c47563a63785c48edee37d..882405ac7a4cf414d7c15022109d4edb1a9d3a1b 100644 --- a/interop/src/cpp/cangjie/convertors-cj.h +++ b/interop/src/cpp/cangjie/convertors-cj.h @@ -64,10 +64,10 @@ template<> struct InteropTypeConverter { using InteropType = KDouble; static inline KInteropNumber convertFrom(InteropType value) { - return KInteropNumber::fromNumber(value); + return KInteropNumber::fromDouble(value); } static inline InteropType convertTo(KInteropNumber value) { - return value.asDouble() + return value.asDouble(); } };