From 330dcf44418ebe4212e08e57b59eeb6775b3632b Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 13 Jan 2026 12:47:37 +0100 Subject: chore: update rope_fwd's operator++ and operator--. Signed-off-by: Amlal El Mahrouss --- include/ocl/tproc/detail/rope_fwd.inl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ocl/tproc/detail/rope_fwd.inl b/include/ocl/tproc/detail/rope_fwd.inl index fededbc..7973252 100644 --- a/include/ocl/tproc/detail/rope_fwd.inl +++ b/include/ocl/tproc/detail/rope_fwd.inl @@ -617,9 +617,9 @@ namespace ocl::tproc basic_rope::rope_ptr basic_rope::operator++(int n) { rope_ptr ret{}; - while (n) + while (n && ret) { - ret = this->operator++(); + ret = ret->operator++(); --n; } @@ -636,9 +636,9 @@ namespace ocl::tproc basic_rope::rope_ptr basic_rope::operator--(int n) { rope_ptr ret{}; - while (n) + while (n && ret) { - ret = this->operator--(); + ret = ret->operator--(); --n; } -- cgit v1.2.3