Use @MP_EQ@ instead of @MP_CMP@.
[u/mdw/catacomb] / share.c
diff --git a/share.c b/share.c
index 0d61a78..4f5942e 100644 (file)
--- a/share.c
+++ b/share.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: share.c,v 1.3 2000/06/24 18:29:05 mdw Exp $
+ * $Id: share.c,v 1.4 2000/10/08 12:16:17 mdw Exp $
  *
  * Shamir's secret sharing
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: share.c,v $
+ * Revision 1.4  2000/10/08 12:16:17  mdw
+ * Use @MP_EQ@ instead of @MP_CMP@.
+ *
  * Revision 1.3  2000/06/24 18:29:05  mdw
  * Interface change: allow shares to be extracted from a context on demand,
  * rather than building them all up-front.
@@ -342,7 +345,7 @@ static int verify(grand *r)
   ss = share_combine(&s);
   share_destroy(&s);
 
-  if (MP_CMP(sec, !=, ss)) {
+  if (!MP_EQ(sec, ss)) {
     ok = 0;
     fprintf(stderr, "\nbad recombination of shares\n");
   };