summaryrefslogtreecommitdiffhomepage
path: root/docs/cmap_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-19 13:49:41 +0200
committerTyge Løvset <[email protected]>2021-09-19 13:49:41 +0200
commit8da81e7a625f06ec667793ff624c6876d03abbde (patch)
treef1c09759a45b42fdff374b9bde009a9356dffe29 /docs/cmap_api.md
parent58b2831a7287cb00d14a221a9d0263fb0c427675 (diff)
downloadSTC-modified-8da81e7a625f06ec667793ff624c6876d03abbde.tar.gz
STC-modified-8da81e7a625f06ec667793ff624c6876d03abbde.zip
Fixed errors caused by gcc -std=c99 -pedantic.
Diffstat (limited to 'docs/cmap_api.md')
-rw-r--r--docs/cmap_api.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/cmap_api.md b/docs/cmap_api.md
index f72ee280..3fcc8ff8 100644
--- a/docs/cmap_api.md
+++ b/docs/cmap_api.md
@@ -346,7 +346,7 @@ static int RViking_equals(const RViking* r1, const RViking* r2)
{ return !strcmp(r1->name, r2->name) && !strcmp(r1->country, r2->country); }
static uint32_t RViking_hash(const RViking* r, int ignored)
- { return c_rawstr_hash(&r->name) ^ (c_rawstr_hash(&r->country) >> 15); }
+ { return c_strhash(r->name) ^ (c_strhash(r->country) >> 15); }
static Viking Viking_fromR(RViking r)
{ return (Viking){cstr_from(r.name), cstr_from(r.country)}; }