diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-16 18:40:24 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-16 18:40:24 +0400 |
commit | acc1e657ead019fd3e0835cadddf4d39a7b9f181 (patch) | |
tree | d4a5e9a765795233213d6d4ac703bcd8f0b6d5bf /src | |
parent | d19de7c6034b03309d84073c4e482f9fbcd3c349 (diff) | |
download | rspamd-acc1e657ead019fd3e0835cadddf4d39a7b9f181.tar.gz rspamd-acc1e657ead019fd3e0835cadddf4d39a7b9f181.zip |
* Fix indexes in fuzzy hashes calculations
* Add optimization flags support
* Enable -O by default
Diffstat (limited to 'src')
-rw-r--r-- | src/fuzzy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuzzy.c b/src/fuzzy.c index 49bb9da27..9e49649aa 100644 --- a/src/fuzzy.c +++ b/src/fuzzy.c @@ -63,7 +63,7 @@ fuzzy_roll_hash (char c) rs.h[2] <<= 5; rs.h[2] ^= c; - return rs.h[1] + rs.h[2] + rs.h[3]; + return rs.h[0] + rs.h[1] + rs.h[2]; } /* A simple non-rolling hash, based on the FNV hash */ |