diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2010-05-13 12:52:45 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2010-05-13 12:52:45 +0000 |
| commit | 6884183ad9dc40bca5c07cff3d400ff1a9025449 (patch) | |
| tree | 0c19fb049426af27ee0cff1892afadd1cf025e77 /src/core/ngx_hash.h | |
| parent | 980220ffafe7b6ef1274ce07994a77f3d0bb16f5 (diff) | |
| download | nginx-6884183ad9dc40bca5c07cff3d400ff1a9025449.tar.gz nginx-6884183ad9dc40bca5c07cff3d400ff1a9025449.tar.bz2 | |
allow hash key values more than 255 bytes, it does not actually increase mean
hash element size, because due to aligning a byte after key is not used
anyway in 3/4 cases on 32-bit platforms and in 7/8 cases on 64-bit platforms
Diffstat (limited to 'src/core/ngx_hash.h')
| -rw-r--r-- | src/core/ngx_hash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_hash.h b/src/core/ngx_hash.h index 76e3c774e..beabcb7c3 100644 --- a/src/core/ngx_hash.h +++ b/src/core/ngx_hash.h @@ -14,7 +14,7 @@ typedef struct { void *value; - u_char len; + u_short len; u_char name[1]; } ngx_hash_elt_t; |
