* bits, let's compare prefixes and descend the cover
* subtree if they match.
*/
- if (node->node.bit >> 1 == pfx)
+ if ((unsigned short)node->node.bit >> 1 == pfx)
troot = node->node.branches.b[EB_LEFT];
else
troot = node->node.branches.b[EB_RGHT];
eb_troot_t *node_p; /* link node's parent */
eb_troot_t *leaf_p; /* leaf node's parent */
short int bit; /* link's bit position. */
- short int pfx; /* data prefix length, always related to leaf */
+ short unsigned int pfx; /* data prefix length, always related to leaf */
};
/* Return the structure of type <type> whose member <member> points to <ptr> */