fix a trie backward traverse bug
This commit is contained in:
parent
90041919d4
commit
b5d486279a
@ -203,7 +203,7 @@ TrData trie_traverse_init(TrEntry trie, TrData init_data) {
|
|||||||
if (CURRENT_TRAVERSE_MODE == TRAVERSE_MODE_FORWARD)
|
if (CURRENT_TRAVERSE_MODE == TRAVERSE_MODE_FORWARD)
|
||||||
data = TrEntry_first_data(trie);
|
data = TrEntry_first_data(trie);
|
||||||
else
|
else
|
||||||
data = TrEntry_last_data(trie);
|
data = trie_get_last_entry(trie);
|
||||||
}
|
}
|
||||||
TrEntry_traverse_data(trie) = data;
|
TrEntry_traverse_data(trie) = data;
|
||||||
return data;
|
return data;
|
||||||
|
Reference in New Issue
Block a user