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:
3cdb27c
)
Fixed bug in compare_values_short. Reported by Ben Pfaff.
author
Jason H Stover
<jhs@math.gcsu.edu>
Mon, 19 Jan 2009 20:20:17 +0000
(15:20 -0500)
committer
Jason H Stover
<jhs@math.gcsu.edu>
Mon, 19 Jan 2009 20:20:17 +0000
(15:20 -0500)
src/math/covariance-matrix.c
patch
|
blob
|
history
diff --git
a/src/math/covariance-matrix.c
b/src/math/covariance-matrix.c
index b6411fb3d78262e2450f3cbbdd1bccd1844f9184..4f14a7c60517f7b97379d0e963a8eff0c74fce1d 100644
(file)
--- a/
src/math/covariance-matrix.c
+++ b/
src/math/covariance-matrix.c
@@
-400,14
+400,14
@@
match_nodes (const struct covariance_accumulator *c,
}
if (var_is_numeric (v1) && var_is_alpha (v2))
{
}
if (var_is_numeric (v1) && var_is_alpha (v2))
{
- if (compare_values_short (val2, c->val2, v2))
+ if (
!
compare_values_short (val2, c->val2, v2))
{
return 0;
}
}
if (var_is_alpha (v1) && var_is_numeric (v2))
{
{
return 0;
}
}
if (var_is_alpha (v1) && var_is_numeric (v2))
{
- if (compare_values_short (val1, c->val1, v1))
+ if (
!
compare_values_short (val1, c->val1, v1))
{
return 0;
}
{
return 0;
}
@@
-416,7
+416,7
@@
match_nodes (const struct covariance_accumulator *c,
{
if (compare_values_short (val1, c->val1, v1))
{
{
if (compare_values_short (val1, c->val1, v1))
{
- if (compare_values_short (val2, c->val2, v2))
+ if (
!
compare_values_short (val2, c->val2, v2))
{
return 0;
}
{
return 0;
}