summaryrefslogtreecommitdiffhomepage
path: root/include/ocl
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-13 12:47:37 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-13 12:47:37 +0100
commit330dcf44418ebe4212e08e57b59eeb6775b3632b (patch)
treebae088ea6dd0f62962482a827d89476fe68f126c /include/ocl
parentdc3a4c9c89eea74cfd03b458fcbdd675d5409e6f (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/ocl')
-rw-r--r--include/ocl/tproc/detail/rope_fwd.inl8
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;
}