X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fmono-ehash.c;h=e5ece3a699f00fbbbde1545aea948a9a6fb7abd8;hb=edce8b09f14e63be9ad3fdfb5ade2bda158c4009;hp=bcc33b2703dcd4d3feaf63ac4c0f0c322c32ae97;hpb=4eb352bcb3ef7a71dc9ab62c5cd2d5e7598619f7;p=mono.git diff --git a/mono/utils/mono-ehash.c b/mono/utils/mono-ehash.c index bcc33b2703d..e5ece3a699f 100644 --- a/mono/utils/mono-ehash.c +++ b/mono/utils/mono-ehash.c @@ -29,7 +29,6 @@ #include #include #include -#include #include "mono-hash.h" #include "metadata/gc-internal.h" @@ -177,7 +176,7 @@ do_rehash (MonoGHashTable *hash) static void rehash (MonoGHashTable *hash) { - int diff = ABS (hash->last_rehash, hash->in_use); + int diff = ABS (hash->last_rehash - hash->in_use); /* These are the factors to play with to change the rehashing strategy */ /* I played with them with a large range, and could not really get */