diff options
author | Gustavo Lopes <glopes@nebm.ist.utl.pt> | 2013-01-09 23:20:32 +0100 |
---|---|---|
committer | Gustavo Lopes <gustavo@icemobile.com> | 2013-01-14 12:22:42 +0100 |
commit | e5029ac40bd84fd3545538afa013051e161d86a4 (patch) | |
tree | 6655ff1ea21fb827089a6383fc40730015bd87b0 | |
parent | 93d1171c47d10158e6e9855236277deb09cf7e6b (diff) | |
download | php-git-e5029ac40bd84fd3545538afa013051e161d86a4.tar.gz |
The compiler can figure this out
-rw-r--r-- | ext/standard/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index 14259cabc0..c7ed8844f1 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2821,7 +2821,7 @@ static inline HASH php_strtr_hash(const char *str, int len) HASH res = 0; int i; for (i = 0; i < len; i++) { - res = (res << 5) + res + (unsigned char)str[i]; + res = res * 33 + (unsigned char)str[i]; } return res; |