* src/pairs.c (bdd_copypair): Use memcpy to copy from->result,

and correctly copy p->last from from->last.
This commit is contained in:
Alexandre Duret-Lutz 2003-05-22 12:07:52 +00:00
parent 2f6e476cba
commit 4d6660835a
2 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,7 @@
2003-05-20 Alexandre Duret-Lutz <aduret@src.lip6.fr> 2003-05-20 Alexandre Duret-Lutz <aduret@src.lip6.fr>
* src/pairs.c (bdd_copypair): Use memcpy to copy from->result. * src/pairs.c (bdd_copypair): Use memcpy to copy from->result,
and correctly copy p->last from from->last.
* src/pairs.c (bdd_setbddpair): Fix prototype in documentation. * src/pairs.c (bdd_setbddpair): Fix prototype in documentation.

View file

@ -28,7 +28,7 @@
========================================================================*/ ========================================================================*/
/************************************************************************* /*************************************************************************
$Header: /Volumes/CVS/repository/spot/spot/buddy/src/pairs.c,v 1.5 2003/05/20 10:42:19 aduret Exp $ $Header: /Volumes/CVS/repository/spot/spot/buddy/src/pairs.c,v 1.6 2003/05/22 12:07:52 aduret Exp $
FILE: pairs.c FILE: pairs.c
DESCR: Pair management for BDD package. DESCR: Pair management for BDD package.
AUTH: Jorn Lind AUTH: Jorn Lind
@ -206,7 +206,7 @@ bddPair *bdd_copypair(bddPair *from)
memcpy(p->result, from->result, bddvarnum * sizeof(*p->result)); memcpy(p->result, from->result, bddvarnum * sizeof(*p->result));
p->id = update_pairsid(); p->id = update_pairsid();
p->last = -1; p->last = from->last;
bdd_register_pair(p); bdd_register_pair(p);
return p; return p;