From f973cc4b8d6ad26a954ccb37e74529c0976af433 Mon Sep 17 00:00:00 2001 From: kolegovilya Date: Fri, 21 Feb 2025 17:03:33 +0300 Subject: [PATCH] lost constructor --- interop/src/cpp/types/koala-types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interop/src/cpp/types/koala-types.h b/interop/src/cpp/types/koala-types.h index 9ab5ac39b..ccc191cb5 100644 --- a/interop/src/cpp/types/koala-types.h +++ b/interop/src/cpp/types/koala-types.h @@ -111,6 +111,10 @@ struct KInteropNumber { this->tag = INTEROP_TAG_FLOAT32; this->f32 = value; } + KInteropNumber(InteropNumber value) { + this->tag = value.tag; + this->i32 = value.i32; + } InteropNumber toCType() { InteropNumber result; result.tag = this->tag; -- Gitee