Fix issue 112.

This commit is contained in:
castano 2010-03-02 01:29:48 +00:00
parent 8af199a819
commit d0315d6408

View File

@ -17,7 +17,7 @@ namespace nv
/// String hash based on Bernstein's hash. /// String hash based on Bernstein's hash.
inline uint strHash(const char * data, uint h = 5381) inline uint strHash(const char * data, uint h = 5381)
{ {
uint i; uint i = 0;
while(data[i] != 0) { while(data[i] != 0) {
h = (33 * h) ^ uint(data[i]); h = (33 * h) ^ uint(data[i]);
i++; i++;