projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fri Feb 11 00:08:36 2005 Ben Pfaff <blp@gnu.org>
[pspp]
/
src
/
group.c
diff --git
a/src/group.c
b/src/group.c
index 06e303e559cd3cf16083efd78659d02c4733cb60..c313e542c01d8e7440d4c67969bdc781e497f66e 100644
(file)
--- a/
src/group.c
+++ b/
src/group.c
@@
-25,6
+25,7
@@
#include "group_proc.h"
#include "str.h"
#include "var.h"
#include "group_proc.h"
#include "str.h"
#include "var.h"
+#include "misc.h"
/* Return -1 if the id of a is less than b; +1 if greater than and
/* Return -1 if the id of a is less than b; +1 if greater than and
@@
-38,15
+39,13
@@
compare_group(const struct group_statistics *a,
}
}
+
unsigned
hash_group(const struct group_statistics *g, int width)
{
unsigned id_hash;
unsigned
hash_group(const struct group_statistics *g, int width)
{
unsigned id_hash;
- if ( 0 == width )
- id_hash = hsh_hash_double (g->id.f);
- else
- id_hash = hsh_hash_bytes (g->id.s, width);
+ id_hash = hash_value(&g->id, width);
return id_hash;
}
return id_hash;
}