d3d1x: fix segfault when hashing
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 22 Sep 2010 11:54:07 +0000 (13:54 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Wed, 22 Sep 2010 11:54:07 +0000 (13:54 +0200)
src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h

index 55cbd4a7199dcbeae15c83b312e9dc76eddde41c..6c13a9ccb4ee95baa534ae1c86c086820ec61ff7 100644 (file)
@@ -762,7 +762,7 @@ static inline size_t raw_hash(const char* p, size_t size)
        const char* end = p + size;
        for(; p != end; ++p)
        {
-               res ^= (size_t)*p++;
+               res ^= (size_t)*p;
                if(sizeof(size_t) >= 8)
                        res *= (size_t)1099511628211ULL;
                else