From c75790a934df0c8abe06606e6defd452e0c700e6 Mon Sep 17 00:00:00 2001 From: Preslav Gerchev Date: Tue, 3 Oct 2023 19:09:34 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Support=20int32=20in=20llx=20dic?= =?UTF-8?q?t=20primitives.=20(#2061)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- llx/data_conversions.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llx/data_conversions.go b/llx/data_conversions.go index 25fc0aac41..90a94c3a6c 100644 --- a/llx/data_conversions.go +++ b/llx/data_conversions.go @@ -74,6 +74,8 @@ func dict2primitive(value interface{}) (*Primitive, error) { switch x := value.(type) { case bool: return BoolPrimitive(x), nil + case int32: + return IntPrimitive(int64(x)), nil case int64: return IntPrimitive(x), nil case float64: