aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2024-06-13 21:01:03 -0400
committerGravatar Peter McGoron 2024-06-13 21:01:03 -0400
commit5b8775dab611d6a57654356be96c2124cbab7faf (patch)
tree06c570f120e9a491978eaded02abb0f68072d2cf /examples
parenthashtable test (diff)
add fake struct to help with type checker
Diffstat (limited to 'examples')
-rw-r--r--examples/hashtable/uns_hashtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/hashtable/uns_hashtable.c b/examples/hashtable/uns_hashtable.c
index a2a5f7b..3721ab8 100644
--- a/examples/hashtable/uns_hashtable.c
+++ b/examples/hashtable/uns_hashtable.c
@@ -174,7 +174,7 @@ void uns_hashtable_add(struct uns_gc *gc, struct uns_ctr *htbl,
if (uns_hashtable_used(gc, htbl) >= uns_hashtable_len(gc, htbl)*7/10)
uns_hashtable_resize(gc, htbl, uns_hashtable_len(gc, htbl)*2);
- if (search_for_container(gc, htbl, &container, string->p, string_len, &hash)) {
+ if (search_for_container(gc, htbl, &container, (unsigned char *)string->p, string_len, &hash)) {
old_value->p = gc->record_get_ptr(container.p, VALUE);
gc->record_set_ptr(container.p, VALUE, value->p);
return;