* Makefile.am (version.h): Fix issues when built out of tree.
[mono.git] / mono / utils / mono-ehash.c
index bcc33b2703dcd4d3feaf63ac4c0f0c322c32ae97..e5ece3a699f00fbbbde1545aea948a9a6fb7abd8 100644 (file)
@@ -29,7 +29,6 @@
 #include <stdio.h>
 #include <math.h>
 #include <glib.h>
-#include <mono/os/gc_wrapper.h>
 #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 */