Skip to content

Commit e5029ac

Browse files
committed
The compiler can figure this out
1 parent 93d1171 commit e5029ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2821,7 +2821,7 @@ static inline HASH php_strtr_hash(const char *str, int len)
28212821
HASH res = 0;
28222822
int i;
28232823
for (i = 0; i < len; i++) {
2824-
res = (res << 5) + res + (unsigned char)str[i];
2824+
res = res * 33 + (unsigned char)str[i];
28252825
}
28262826

28272827
return res;

0 commit comments

Comments
 (0)