diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-13 12:47:37 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-13 12:47:37 +0100 |
| commit | 330dcf44418ebe4212e08e57b59eeb6775b3632b (patch) | |
| tree | bae088ea6dd0f62962482a827d89476fe68f126c /include | |
| parent | dc3a4c9c89eea74cfd03b458fcbdd675d5409e6f (diff) | |
chore: update rope_fwd's operator++ and operator--.v1.1.0v1.1.0-develop
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/ocl/tproc/detail/rope_fwd.inl | 8 |
1 files 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<CharT, Traits, Allocator>::rope_ptr basic_rope<CharT, Traits, Allocator>::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<CharT, Traits, Allocator>::rope_ptr basic_rope<CharT, Traits, Allocator>::operator--(int n) { rope_ptr ret{}; - while (n) + while (n && ret) { - ret = this->operator--(); + ret = ret->operator--(); --n; } |
