mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +02:00
* gc-card.c ("sweep_card"): handle new mpz_t bignums.
This commit is contained in:
parent
9aa82b3994
commit
660e30c566
1 changed files with 5 additions and 7 deletions
|
@ -41,6 +41,7 @@
|
|||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <gmp.h>
|
||||
|
||||
#include "libguile/_scm.h"
|
||||
#include "libguile/eval.h"
|
||||
|
@ -256,13 +257,10 @@ scm_i_sweep_card (scm_t_cell * p, SCM *free_list, scm_t_heap_segment*seg)
|
|||
case scm_tc_free_cell:
|
||||
case scm_tc16_real:
|
||||
break;
|
||||
#ifdef SCM_BIGDIG
|
||||
case scm_tc16_big:
|
||||
scm_gc_free (SCM_BDIGITS (scmptr),
|
||||
((SCM_NUMDIGS (scmptr) * SCM_BITSPERDIG
|
||||
/ SCM_CHAR_BIT)), "bignum");
|
||||
break;
|
||||
#endif /* def SCM_BIGDIG */
|
||||
case scm_tc16_big:
|
||||
mpz_clear (SCM_I_BIG_MPZ (scmptr));
|
||||
/* nothing else to do here since the mpz is in a double cell */
|
||||
break;
|
||||
case scm_tc16_complex:
|
||||
scm_gc_free (SCM_COMPLEX_MEM (scmptr), 2*sizeof (double),
|
||||
"complex");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue