projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d17dbf
)
mesa: fix broken _mesa_str_checksum()
author
Brian Paul
<brianp@vmware.com>
Fri, 23 Oct 2009 22:36:15 +0000
(16:36 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 23 Oct 2009 22:36:15 +0000
(16:36 -0600)
src/mesa/main/imports.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.c
b/src/mesa/main/imports.c
index 30fa55997ef0783edc51ff2afff6587eedc8f80b..91d8d156b8f6d411580e89960c28526990be8156 100644
(file)
--- a/
src/mesa/main/imports.c
+++ b/
src/mesa/main/imports.c
@@
-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
;
}