@@ -173,19 +173,19 @@ } h->data[idx]->obj = obj; } -const void* +void* objc_hashtable_get(struct objc_hashtable *h, const char *key) { int64_t idx = index_for_key(h, key); if (idx < 0) return NULL; - return h->data[idx]->obj; + return (void*)h->data[idx]->obj; } void objc_hashtable_free(struct objc_hashtable *h) {