diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/shard/PGM.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/shard/PGM.h b/include/shard/PGM.h index f3f5106..73688ae 100644 --- a/include/shard/PGM.h +++ b/include/shard/PGM.h @@ -318,7 +318,7 @@ public: ptr++; } - while (ptr->rec.key <= p->upper_bound && ptr < ptr + s->stop_idx) { + while (ptr->rec.key <= p->upper_bound && ptr < ts->m_data + s->stop_idx) { records.emplace_back(*ptr); ptr++; } |