Mercurial > projects > chipmunkd
diff trunk/chipmunkd/cpSpaceHash.d @ 17:131331ebb599
cpVect toString method and some cleanup
author | Extrawurst |
---|---|
date | Thu, 09 Dec 2010 01:51:30 +0100 |
parents | df4ebc8add66 |
children |
line wrap: on
line diff
--- a/trunk/chipmunkd/cpSpaceHash.d Sat Dec 04 02:02:29 2010 +0100 +++ b/trunk/chipmunkd/cpSpaceHash.d Thu Dec 09 01:51:30 2010 +0100 @@ -285,7 +285,7 @@ static cpHashValue hash_func(cpHashValue x, cpHashValue y, cpHashValue n) { - return cast(cpHashValue)((x*1640531513uL ^ y*2654435789uL) % n); + return cast(cpHashValue)(( (x*1640531513uL) ^ (y*2654435789uL) ) % n); } // Much faster than (int)floor(f)