mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-04 23:20:31 +01:00
mesa: fix broken _mesa_str_checksum()
This commit is contained in:
parent
2d17dbfb53
commit
0acb057ad1
1 changed files with 2 additions and 2 deletions
|
|
@ -934,9 +934,9 @@ _mesa_str_checksum(const char *str)
|
|||
unsigned int sum, i;
|
||||
const char *c;
|
||||
sum = i = 1;
|
||||
for (c = str; *c; c++)
|
||||
for (c = str; *c; c++, i++)
|
||||
sum += *c * (i % 100);
|
||||
return sum;
|
||||
return sum + i;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue