value: fix counter reset

This commit is contained in:
Matt Bilker
2018-09-06 15:45:48 +00:00
parent 77ccd55041
commit d48d5d2865

View File

@@ -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
}