chiark / gitweb /
chain.c: Use `short' for word and chain lengths, except for QP tries.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 30 Mar 2025 20:25:58 +0000 (21:25 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 30 Mar 2025 21:48:44 +0000 (22:48 +0100)
commit4d4489e372b27a411a5d1e61a68b86b025079315
tree8956652ec23941b2e2a8631139d48c4138d5887a
parent6a413efa07e7b571c69cd1b49b2f60d777258e08
chain.c: Use `short' for word and chain lengths, except for QP tries.

The maximum word length is 64 bytes, and the chain length is bounded by
the word length.  We're sort-of forced into `size_t' for the word length
with QP tries, because `Tnextl' wants to store the key length through a
pointer.
chain.c