fix a trie backward traverse bug

This commit is contained in:
Theofrastos Mantadelis 2010-12-17 12:29:56 +01:00
parent 90041919d4
commit b5d486279a

View File

@ -203,7 +203,7 @@ TrData trie_traverse_init(TrEntry trie, TrData init_data) {
if (CURRENT_TRAVERSE_MODE == TRAVERSE_MODE_FORWARD)
data = TrEntry_first_data(trie);
else
data = TrEntry_last_data(trie);
data = trie_get_last_entry(trie);
}
TrEntry_traverse_data(trie) = data;
return data;