projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add new hash functions. Provide full help for subcommands. Run the
[u/mdw/catacomb]
/
mpmul.c
diff --git
a/mpmul.c
b/mpmul.c
index
4541aea
..
4dd6a68
100644
(file)
--- a/
mpmul.c
+++ b/
mpmul.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: mpmul.c,v 1.
3 2000/10/08 12:11:22
mdw Exp $
+ * $Id: mpmul.c,v 1.
4 2001/02/03 12:00:29
mdw Exp $
*
* Multiply many small numbers together
*
*
* Multiply many small numbers together
*
@@
-30,6
+30,10
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: mpmul.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: mpmul.c,v $
+ * Revision 1.4 2001/02/03 12:00:29 mdw
+ * Now @mp_drop@ checks its argument is non-NULL before attempting to free
+ * it. Note that the macro version @MP_DROP@ doesn't do this.
+ *
* Revision 1.3 2000/10/08 12:11:22 mdw
* Use @MP_EQ@ instead of @MP_CMP@.
*
* Revision 1.3 2000/10/08 12:11:22 mdw
* Use @MP_EQ@ instead of @MP_CMP@.
*
@@
-148,8
+152,7
@@
mp *mp_factorial(unsigned long i)
x = mp_fromulong(x, j);
mpmul_add(&b, x);
}
x = mp_fromulong(x, j);
mpmul_add(&b, x);
}
- if (x)
- mp_drop(x);
+ mp_drop(x);
return (mpmul_done(&b));
}
return (mpmul_done(&b));
}