-/*
- * sgen-hash-table.c
+/**
+ * \file
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
new_size = g_spaced_primes_closest (hash_table->num_entries);
}
- new_hash = sgen_alloc_internal_dynamic (new_size * sizeof (SgenHashTableEntry*), hash_table->table_mem_type, TRUE);
+ new_hash = (SgenHashTableEntry **)sgen_alloc_internal_dynamic (new_size * sizeof (SgenHashTableEntry*), hash_table->table_mem_type, TRUE);
for (i = 0; i < old_hash_size; ++i) {
for (entry = old_hash [i]; entry; entry = next) {
hash = hash_table->hash_func (entry->key) % new_size;
return FALSE;
}
- entry = sgen_alloc_internal (hash_table->entry_mem_type);
+ entry = (SgenHashTableEntry *)sgen_alloc_internal (hash_table->entry_mem_type);
entry->key = key;
memcpy (entry->data, new_value, hash_table->data_size);