Skip to content

Commit

Permalink
Fix accidental over-lapping data bind for slices
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Dec 18, 2020
1 parent 6b613f0 commit 1e82abf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/binding/bindlists.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ func BindFloatList(v *[]float64) FloatList {

b := &boundFloatList{val: v}

for _, i := range *v {
b.appendItem(BindFloat(&i))
for i := range *v {
b.appendItem(BindFloat(&((*v)[i])))
}

return b
Expand Down

0 comments on commit 1e82abf

Please sign in to comment.