Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible bug #9

Closed
legale opened this issue Oct 28, 2018 · 1 comment

Comments

@legale
Copy link

commented Oct 28, 2018

If i add full 1-byte range from 0x00 to 0xff. TrieChar 255 appears int the results of trie_state_walkable_chars() or trie_enumerate().

1byte.abm

[0x0,0xff]
trietool 1byte add 12
trietool 1byte add 122
trietool 1byte list
12ÿ	-1
122	-1
ru@ru-mi:/usr/local/libdatrie/bin# 
@thep

This comment has been minimized.

Copy link
Contributor

commented Nov 23, 2018

This appears to be a bug in AlphaMap where trie char 0 is incorrectly mapped to 255 (0xff) due to an overflow in alpha_map_recalc_work_area(), similar to Issue #6.

I'm fixing it soon.

@thep thep closed this in 8e2537b Nov 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.