Modified stack iterator index
This commit is contained in:
1 parent
d70b145743
commit
dde58b2349
2 files changed
+44
-4
No files matched your search
+2
-2
@@ -238,7 +238,7 @@
|
||||
if (iter->end) \
|
||||
return false; \
|
||||
\
|
||||
*index = iter->cursor; \
|
||||
*index = iter->target->count - iter->cursor - 1; \
|
||||
*result = iter->target->buffer[iter->cursor]; \
|
||||
iter->start = false; \
|
||||
\
|
||||
@@ -255,7 +255,7 @@
|
||||
if (iter->start) \
|
||||
return false; \
|
||||
\
|
||||
*index = iter->cursor; \
|
||||
*index = iter->target->count - iter->cursor - 1; \
|
||||
*result = iter->target->buffer[iter->cursor]; \
|
||||
iter->end = false; \
|
||||
\
|
||||
|
||||
Reference in new issue
Block a user