summaryrefslogtreecommitdiff
path: root/src/prefix_tree.hpp
AgeCommit message (Collapse)Author
2010-09-02Prior to this patch prefix_tree asserts.Jon Dyte
This is because as it adds the 255th element at a node it attempts to calculate the count member var which is an unsigned char via count = (255 -0) + 1; and pass the result to realloc. Unfortunately the result is zero and realloc returns null; the prefix_tree asserts. I have fixed it by making the count an unsigned short.
2010-01-31ZMQII-51: Implement O(1) topic matchingMartin Sustrik