diff options
| author | Tyge Løvset <[email protected]> | 2021-12-12 21:33:39 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-12-12 21:33:39 +0100 |
| commit | 9c6be40eeba170502f1cdd5c3e933b6616ca7c3f (patch) | |
| tree | 1026f8b017fb5b51ea86ce060e15b620470cf9e8 | |
| parent | d57b9bb7666753c7cf7ab5a0da6d7d11f303c2af (diff) | |
| parent | 80b10f6fec8d65b173315fd674b6a14eabf7103e (diff) | |
| download | STC-modified-9c6be40eeba170502f1cdd5c3e933b6616ca7c3f.tar.gz STC-modified-9c6be40eeba170502f1cdd5c3e933b6616ca7c3f.zip | |
Merge branch 'master' of github.com:tylov/STC into master
| -rw-r--r-- | docs/cmap_api.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/cmap_api.md b/docs/cmap_api.md index e4bc266a..51bcdcce 100644 --- a/docs/cmap_api.md +++ b/docs/cmap_api.md @@ -200,7 +200,7 @@ typedef struct { int x, y, z; } Vec3i; #define i_key Vec3i #define i_val int -#define i_cmp c_memcmp_equalto // bitwise compare, and use c_default_hash +#define i_equ c_memcmp_equalto // bitwise compare, and use c_default_hash #define i_tag vi #include <stc/cmap.h> @@ -275,7 +275,7 @@ static bool Viking_equalto(const Viking* a, const Viking* b) { } static uint32_t Viking_hash(const Viking* a, int ignored) { - return cstr_hash(&a->name) ^ (cstr_hash(&a->country) >> 15); + return c_strhash(a->name.str) ^ (c_strhash(a->country.str) >> 15); } static void Viking_del(Viking* v) { |
