Branch: Tag:

2011-05-17

2011-05-17 11:24:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Hashtable: Fixed broken PIKE_DEBUG test in hash_rehash().

83:    int e;      #ifdef PIKE_DEBUG -  if( 1 << my_log2(size) != size) -  Pike_fatal("Size is not a power of two!\n"); +  if (size & (size-1)) +  Pike_fatal("Size is not a power of two! Size: 0x%08x\n", size);   #endif       new=(struct hash_table *)calloc(1,sizeof(struct hash_table)+