summaryrefslogtreecommitdiff
path: root/src/vm/rejit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/rejit.h')
-rw-r--r--src/vm/rejit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/rejit.h b/src/vm/rejit.h
index 8401ecb960..09513e10c7 100644
--- a/src/vm/rejit.h
+++ b/src/vm/rejit.h
@@ -150,7 +150,7 @@ private:
typedef CodeVersionManager * key_t;
static key_t GetKey(const element_t &e) { return e->m_pCodeVersionManager; }
static BOOL Equals(key_t k1, key_t k2) { return (k1 == k2); }
- static count_t Hash(key_t k) { return (count_t)k; }
+ static count_t Hash(key_t k) { return *(count_t*)k; }
static bool IsNull(const element_t &e) { return (e == NULL); }
};