diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-08 16:54:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-08 16:54:07 +0400 |
commit | 62db610220867bb2b68a338b5fb8a2893f45fa80 (patch) | |
tree | f80ef9ab7d804e9bd0e31d6b8b2b155e1c164441 /source/blender/blenlib/intern/edgehash.c | |
parent | 6b1b20ef0d17156c82a68d39142c41a24c1c5d47 (diff) |
use unsigned int's for smallhash, avoids using ABS when converting an
int from a key.
Diffstat (limited to 'source/blender/blenlib/intern/edgehash.c')
-rw-r--r-- | source/blender/blenlib/intern/edgehash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/edgehash.c b/source/blender/blenlib/intern/edgehash.c index d75ada9e799..5aa53f44519 100644 --- a/source/blender/blenlib/intern/edgehash.c +++ b/source/blender/blenlib/intern/edgehash.c @@ -41,7 +41,7 @@ #include "BLI_mempool.h" /**************inlined code************/ -static unsigned int _ehash_hashsizes[] = { +static const unsigned int _ehash_hashsizes[] = { 1, 3, 5, 11, 17, 37, 67, 131, 257, 521, 1031, 2053, 4099, 8209, 16411, 32771, 65537, 131101, 262147, 524309, 1048583, 2097169, 4194319, 8388617, 16777259, 33554467, 67108879, 134217757, |