Skip to content

Commit

Permalink
use pointer receiver for decimals.Get
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanlewis committed Dec 6, 2020
1 parent 2b9d534 commit 2558a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/col/coldata/native_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (c Float64s) Get(idx int) float64 { return c[idx] }
// Get returns the element at index idx of the vector. The element cannot be
// used anymore once the vector is modified.
//gcassert:inline
func (c Decimals) Get(idx int) apd.Decimal {
func (c *Decimals) Get(idx int) apd.Decimal {
return c.decimals[idx]
}

Expand Down

0 comments on commit 2558a53

Please sign in to comment.