diff options
| author | Paul Buetow <paul@buetow.org> | 2008-10-14 22:05:16 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-10-14 22:05:16 +0000 |
| commit | a35ace22b374005c65bda8302761d24f75280170 (patch) | |
| tree | 87cdb9344b9c28fb6dd46cf7ea9d18325e18ec32 /src/data/hash.c | |
| parent | c25ba0d8ee9e4e6a0432fba2e8606c7e0a35d1cd (diff) | |
run astyle
still lots of debugging to do.
Diffstat (limited to 'src/data/hash.c')
| -rw-r--r-- | src/data/hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/hash.c b/src/data/hash.c index 5555eb1..d3f7634 100644 --- a/src/data/hash.c +++ b/src/data/hash.c @@ -44,13 +44,13 @@ hash_new(unsigned i_size) { p_hash->i_size = i_size; p_hash->i_cur_size = 0; - p_hash->p_elems = (HashElem *) calloc(i_size, sizeof(HashElem)); + p_hash->p_elems = (HashElem *) calloc((int)i_size, sizeof(HashElem)); /*Set all positions as "free" */ for (int i = 0; i < i_size; ++i) p_hash->p_elems[i].flag = 'f'; - return p_hash; + return (p_hash); } void |
