projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a7f5c2
)
* value-labels.c (hash_int_val_lab): Only hash as many bytes as
author
Ben Pfaff
<blp@gnu.org>
Mon, 11 Dec 2006 15:56:13 +0000
(15:56 +0000)
committer
Ben Pfaff
<blp@gnu.org>
Mon, 11 Dec 2006 15:56:13 +0000
(15:56 +0000)
the value label's width.
src/data/ChangeLog
patch
|
blob
|
history
src/data/value-labels.c
patch
|
blob
|
history
diff --git
a/src/data/ChangeLog
b/src/data/ChangeLog
index bbbda1b7ab8489f8b9797fc8155491ebeb9e186c..dacd90ac39fc5028e84f4f19df396df53e1f5b40 100644
(file)
--- a/
src/data/ChangeLog
+++ b/
src/data/ChangeLog
@@
-1,3
+1,8
@@
+Mon Dec 11 07:53:39 2006 Ben Pfaff <blp@gnu.org>
+
+ * value-labels.c (hash_int_val_lab): Only hash as many bytes as
+ the value label's width.
+
Sun Dec 10 14:21:29 2006 Ben Pfaff <blp@gnu.org>
* sfm-private.h: Move contents into sys-file-writer.c, which is
diff --git
a/src/data/value-labels.c
b/src/data/value-labels.c
index 81bb375eeca5538fa27c71e5b33735c5368fc762..9f058ad61585e426cacca171e903c8a096b998bd 100644
(file)
--- a/
src/data/value-labels.c
+++ b/
src/data/value-labels.c
@@
-403,7
+403,7
@@
hash_int_val_lab (const void *vl_, const void *vls_)
if (vls->width == 0)
return hsh_hash_double (vl->value.f);
else
- return hsh_hash_bytes (vl->value.s,
sizeof vl->value.s
);
+ return hsh_hash_bytes (vl->value.s,
vls->width
);
}
/* Free a value label. */