From 7875d65c3af0545703ea8642af692284cb01cc0a Mon Sep 17 00:00:00 2001 From: suiyunonghen <75492895@qq.com> Date: Fri, 18 Sep 2020 12:32:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3NewArray=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dxvalue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dxvalue.go b/dxvalue.go index 7dbaf74..4cfa170 100644 --- a/dxvalue.go +++ b/dxvalue.go @@ -224,12 +224,12 @@ func NewArray(cached bool)*DxValue { fisroot: false, Value: make([]DxValue,0,8), } - c.Value = append(c.Value, DxValue{DataType: VT_Object, + c.Value = append(c.Value, DxValue{DataType: VT_Array, ownercache: c,}) result = &c.Value[len(c.Value)-1] }else{ result = &DxValue{ - DataType: VT_Object, + DataType: VT_Array, ownercache: nil, } }