1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

Do not include private-gc.h in srfi-60.

This commit is contained in:
Han-Wen Nienhuys 2008-08-16 12:28:19 -03:00 committed by Han-Wen Nienhuys
parent 51ef99f7fa
commit b61b5d0ebe

View file

@ -18,7 +18,6 @@
*/
#include <libguile.h>
#include "libguile/private-gc.h" /* for SCM_MIN */
#include "srfi-60.h"
@ -332,7 +331,9 @@ SCM_DEFINE (scm_srfi60_integer_to_list, "integer->list", 1, 1, 0,
long nn = SCM_I_INUM (n);
for (i = 0; i < ll; i++)
{
unsigned long shift = SCM_MIN (i, (unsigned long) SCM_LONG_BIT-1);
unsigned long shift =
(i < ((unsigned long) SCM_LONG_BIT-1))
? i : ((unsigned long) SCM_LONG_BIT-1);
int bit = (nn >> shift) & 1;
ret = scm_cons (scm_from_bool (bit), ret);
}