size=0 instead of 32 when the actual size was 32).
svn path=/trunk/yasm/; revision=1407
/* Count total number of bits in bitmap to determine size */
BitCount(Size, node->BitMapKey);
- Size &= 0x1F; /* Clamp to <32 */
+ if (Size > 32)
+ Size = 32;
for (i=0; i<Size; i++)
HAMT_delete_trie(&(GetSubTrie(node))[i]);
/* Count total number of bits in bitmap to determine new size */
BitCount(Size, node->BitMapKey);
- Size &= 0x1F; /* Clamp to <=32 */
- if (Size == 0)
+ if (Size > 32)
Size = 32;
newnodes = yasm_xmalloc(Size*sizeof(HAMTNode));