mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
d3d1x: fix segfault when hashing
This commit is contained in:
parent
d83b7a69a0
commit
cac1565b98
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue