summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/hashmaps/vikings.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/hashmaps/vikings.c')
-rw-r--r--misc/examples/hashmaps/vikings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/hashmaps/vikings.c b/misc/examples/hashmaps/vikings.c
index d6125854..cef17a04 100644
--- a/misc/examples/hashmaps/vikings.c
+++ b/misc/examples/hashmaps/vikings.c
@@ -37,7 +37,7 @@ static inline RViking Viking_toraw(const Viking* vp) {
#define i_rawclass RViking // lookup type
#define i_keyfrom Viking_from
#define i_opt c_no_clone
-#define i_hash(rp) cstrhash(rp->name) ^ cstrhash(rp->country)
+#define i_hash(rp) stc_strhash(rp->name) ^ stc_strhash(rp->country)
#define i_val int // mapped type
#include <stc/cmap.h>