Branch: Tag:

2014-12-04

2014-12-04 19:26:00 by Martin Nilsson <nilsson@opera.com>

mallocs nowdays return void*, so no need to case.

66:   struct hash_table *create_hash_table(void)   {    struct hash_table *new; -  new=(struct hash_table *)calloc(1,sizeof(struct hash_table)+ +  new=calloc(1, sizeof(struct hash_table)+    (NEW_HASHTABLE_SIZE-1)*sizeof(struct hash_entry *));    new->entries=0;    new->mask=NEW_HASHTABLE_SIZE-1;
86:    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)+ +  new=calloc(1, sizeof(struct hash_table)+    (size-1)*sizeof(struct hash_entry *));    new->mask = size - 1;    new->entries = h->entries;