diff options
author | matthijs <matthijs@openttd.org> | 2005-04-07 19:33:32 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2005-04-07 19:33:32 +0000 |
commit | 1d64640ebd908bdb1df97e35c0dc1f6ed7bdadd4 (patch) | |
tree | 153b46bf33b4a1482b6c06db5f8cef04d48c8908 | |
parent | ad5c6a1ecd00675df75a81c9a54895c1b33bb0a9 (diff) | |
download | openttd-1d64640ebd908bdb1df97e35c0dc1f6ed7bdadd4.tar.xz |
(svn r2166) Fixed two warnings in the last commit.
-rw-r--r-- | queue.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -446,7 +446,6 @@ Queue* new_BinaryHeap(uint max_size) { void init_Hash(Hash* h, Hash_HashProc* hash, uint num_buckets) { /* Allocate space for the Hash, the buckets and the bucket flags */ uint i; - uint max_hash; assert(h); #ifdef HASH_DEBUG debug("Allocated hash: %p", h); @@ -509,7 +508,7 @@ void stat_Hash(Hash* h) uint max_collision = 0; uint max_usage = 0; uint usage[200]; - uint i,j; + uint i; uint collision; HashNode* node; @@ -534,9 +533,12 @@ void stat_Hash(Hash* h) for (i=0;i<=max_collision;i++) if (usage[i]) { printf("%d:%d ", i, usage[i]); - /*if (i>0) +/* + if (i>0){ + uint j; for (j=0;j<(usage[i] * 160 / 800);j++) printf("#"); + } printf("\n"); */ } |