Skip to content

Commit

Permalink
修正NewArray数据类型问题
Browse files Browse the repository at this point in the history
  • Loading branch information
suiyunonghen committed Sep 18, 2020
1 parent 47ffd71 commit 7875d65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dxvalue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down

0 comments on commit 7875d65

Please sign in to comment.