projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20040821-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
hash.c
diff --git
a/src/libgame/hash.c
b/src/libgame/hash.c
index 805190bfe81404424a3e34e40024bd683395e43a..bce20519104494443774eb0988a8049e39af274c 100644
(file)
--- a/
src/libgame/hash.c
+++ b/
src/libgame/hash.c
@@
-58,7
+58,7
@@
create_hashtable(unsigned int minsize, float maxloadfactor,
h->table = (struct entry **)malloc(sizeof(struct entry*) * size);
if (NULL == h->table) { free(h); return NULL; } /*oom*/
h->table = (struct entry **)malloc(sizeof(struct entry*) * size);
if (NULL == h->table) { free(h); return NULL; } /*oom*/
- for (i=0;
i<size;
i++) { h->table[i] = NULL; }
+ for (i=0;
i < size;
i++) { h->table[i] = NULL; }
h->tablelength = size;
h->entrycount = 0;
h->hashfn = hashf;
h->tablelength = size;
h->entrycount = 0;
h->hashfn = hashf;