summaryrefslogtreecommitdiff
path: root/src/fwdscript.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2026-08-13 20:26:57 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2026-08-13 20:26:57 +0300
commit788a1fed0953c84667f810b6e44ecb1040e0e472 (patch)
treebd7ad7c0d2622172b9a3c785199172ac34579984 /src/fwdscript.c
parent6fa4569a644090e04ff4dd1ae536c4d2b776668b (diff)
downloadfwdscript-master.tar.gz
fwdscript-master.zip
use the str hash for stringsHEADmaster
+ Groundbreaking, it works better
Diffstat (limited to 'src/fwdscript.c')
-rw-r--r--src/fwdscript.c2
1 files changed, 1 insertions, 1 deletions
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 <conts/map.h>