Skip to content

Commit

Permalink
Merge pull request #139 from nirmal-vuppuluri/master
Browse files Browse the repository at this point in the history
Fix: InBoundMatching does not properly accept passed-in buffer
  • Loading branch information
paulmach authored Jan 8, 2024
2 parents 74e0c28 + 0df4b9e commit 21adbef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quadtree/quadtree.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func (q *Quadtree) InBoundMatching(buf []orb.Pointer, b orb.Bound, f FilterFunc)
}

var p []orb.Pointer
if len(buf) > 0 {
if buf != nil {
p = buf[:0]
}
v := &inBoundVisitor{
Expand Down

0 comments on commit 21adbef

Please sign in to comment.