mirror of
https://github.com/mbilker/kbinxml-rs.git
synced 2026-09-09 19:15:27 -05:00
value: fix counter reset
This commit is contained in:
@@ -171,7 +171,14 @@ macro_rules! tuple {
|
||||
i += 1;
|
||||
|
||||
// If the space counter is equal to count, then split
|
||||
i == count
|
||||
let res = i == count;
|
||||
|
||||
// If splitting, reset the counter
|
||||
if res {
|
||||
i = 0;
|
||||
}
|
||||
|
||||
res
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user