summaryrefslogtreecommitdiffstats
path: root/src/merger.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/merger.go')
-rw-r--r--src/merger.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/merger.go b/src/merger.go
index 2c7675d1..950ba04d 100644
--- a/src/merger.go
+++ b/src/merger.go
@@ -65,7 +65,7 @@ func (mg *Merger) Get(idx int) *Result {
idx = mg.count - idx - 1
}
chunk := (*mg.chunks)[idx/chunkSize]
- return &Result{item: (*chunk)[idx%chunkSize]}
+ return &Result{item: &(*chunk)[idx%chunkSize]}
}
if mg.sorted {