1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Fix a small bug in 2-3-4 tree enumeration

[originally from svn r630]
This commit is contained in:
Simon Tatham 2000-09-26 10:05:48 +00:00
parent 5b20c5b8ce
commit 2c76bd5b3a

View File

@ -599,9 +599,9 @@ void *next234(enum234 *e) {
return n->elems[0];
}
if (pos == 0 && n->elems[1]) {
e->posn = 1;
return n->elems[1];
if (pos < 2 && n->elems[pos+1]) {
e->posn = pos+1;
return n->elems[e->posn];
}
do {