projects
/
sort-networks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sn-transpositionsort: New tool.
[sort-networks.git]
/
src
/
sn_comparator.c
diff --git
a/src/sn_comparator.c
b/src/sn_comparator.c
index
0726504
..
1c9a3e6
100644
(file)
--- a/
src/sn_comparator.c
+++ b/
src/sn_comparator.c
@@
-109,14
+109,14
@@
int sn_comparator_compare (const sn_comparator_t *c0,
return (0);
} /* int sn_comparator_compare */
return (0);
} /* int sn_comparator_compare */
-uint
32
_t sn_comparator_get_hashval (const sn_comparator_t *c) /* {{{ */
+uint
64
_t sn_comparator_get_hashval (const sn_comparator_t *c) /* {{{ */
{
if (c == NULL)
return (0);
/* 100937 and 103319 are some random prime numbers */
{
if (c == NULL)
return (0);
/* 100937 and 103319 are some random prime numbers */
- return ((((uint
32
_t) c->min) * 100937)
- + (((uint
32
_t) c->max) * 103319));
+ return ((((uint
64
_t) c->min) * 100937)
+ + (((uint
64
_t) c->max) * 103319));
} /* }}} uint32_t sn_comparator_get_hashval */
/* vim: set shiftwidth=2 softtabstop=2 : */
} /* }}} uint32_t sn_comparator_get_hashval */
/* vim: set shiftwidth=2 softtabstop=2 : */