Merge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 20 Jan 2009 22:57:58 +0000 (07:57 +0900)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 20 Jan 2009 22:57:58 +0000 (07:57 +0900)
src/math/covariance-matrix.c

index b6411fb3d78262e2450f3cbbdd1bccd1844f9184..4f14a7c60517f7b97379d0e963a8eff0c74fce1d 100644 (file)
@@ -400,14 +400,14 @@ match_nodes (const struct covariance_accumulator *c,
          }
        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))
          {
-           if (compare_values_short (val1, c->val1, v1))
+           if (!compare_values_short (val1, c->val1, v1))
              {
                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 (val2, c->val2, v2))
+               if (!compare_values_short (val2, c->val2, v2))
                  {
                    return 0;
                  }