summaryrefslogtreecommitdiff
path: root/point.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'point.cpp')
-rw-r--r--point.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/point.cpp b/point.cpp
index 235d93c..8f05a46 100644
--- a/point.cpp
+++ b/point.cpp
@@ -148,7 +148,7 @@ struct Point {
uint64_t seek(uint8_t c, uint64_t limit) {
uint64_t travel_distance = 0;
while (!at_end() && next_byte() != c && travel_distance < limit) {
- move_forward();
+ (*this)++;
travel_distance++;
}
return travel_distance;
@@ -157,7 +157,7 @@ struct Point {
uint64_t rseek(uint8_t c, uint64_t limit) {
uint64_t travel_distance = 0;
while (!at_start() && prev_byte() != c && travel_distance < limit) {
- move_backward();
+ (*this)--;
travel_distance++;
}
return travel_distance;