avoid negative (and full-width) shifts in radix-tree.c