• Jon Dyte's avatar
    Prior to this patch prefix_tree asserts. · 14853c2d
    Jon Dyte authored
    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.
    14853c2d
prefix_tree.cpp 5.19 KB