diff options
| author | Sascha Schumann <sas@php.net> | 2000-11-03 11:59:41 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2000-11-03 11:59:41 +0000 |
| commit | b4ce4e26340e9ef7effb3a3b1f7610d01827d185 (patch) | |
| tree | df3e9630f73280d9c5603b758cdd54650371484b /ext/session | |
| parent | c0904e1c9e29e2c160427f3cb172125e85a6df40 (diff) | |
| download | php-git-b4ce4e26340e9ef7effb3a3b1f7610d01827d185.tar.gz | |
Fix implementation of hash algorithm
Diffstat (limited to 'ext/session')
| -rw-r--r-- | ext/session/mod_mm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/session/mod_mm.c b/ext/session/mod_mm.c index 7255165e32..c3e4d5ad06 100644 --- a/ext/session/mod_mm.c +++ b/ext/session/mod_mm.c @@ -77,7 +77,7 @@ static unsigned int ps_sd_hash(const char *data) for (val = 0; *data; data++) { val = (val << ONE_EIGTH) + *data; if ((i = val & HIGH_BITS) != 0) - val = (val ^ (i >> THREE_QUARTERS)) & -HIGH_BITS; + val = (val ^ (i >> THREE_QUARTERS)) & ~HIGH_BITS; } return val; |
