From 788a1fed0953c84667f810b6e44ecb1040e0e472 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 13 Aug 2026 20:26:57 +0300 Subject: use the str hash for strings + Groundbreaking, it works better --- src/fwdscript.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fwdscript.c b/src/fwdscript.c index 7b1de26..89c7526 100644 --- a/src/fwdscript.c +++ b/src/fwdscript.c @@ -95,7 +95,7 @@ static int fwdhash(const struct fwdval *a) #define MAP_KEY char * #define MAP_TYPE size_t #define MAP_CMP(A, B) strcmp((A), (B)) -#define MAP_HASH(A) (A)[0] +#define MAP_HASH(A) CONTS_MAP_STR_HASH(A) #define MAP_NAME fwdfuncs #include -- cgit v1.3