projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pgen: Implement general simultaneous-primality searching.
[u/mdw/catacomb]
/
mp-mem.c
diff --git
a/mp-mem.c
b/mp-mem.c
index
4d9ee48
..
5d345a0
100644
(file)
--- a/
mp-mem.c
+++ b/
mp-mem.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: mp-mem.c,v 1.
7 2004/04/08 01:36:15
mdw Exp $
+ * $Id: mp-mem.c,v 1.
8 2004/04/08 16:17:32
mdw Exp $
*
* Memory management for multiprecision numbers
*
*
* Memory management for multiprecision numbers
*
@@
-265,7
+265,7
@@
mp *mp_dest(mp *m, size_t sz, unsigned f)
/* --- Otherwise check whether the destination is suitable --- */
if (m->ref > 1 || (m->f & MP_CONST) ||
/* --- Otherwise check whether the destination is suitable --- */
if (m->ref > 1 || (m->f & MP_CONST) ||
- sz > m->sz ||
!
((f & ~m->f) & MP_BURN)) {
+ sz > m->sz || ((f & ~m->f) & MP_BURN)) {
/* --- No -- allocate a new buffer --- *
*
/* --- No -- allocate a new buffer --- *
*