1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-21 20:20:24 +02:00
(scm_logbit_p): Correction to test above the end of an
inum.  Reported by Jan Konecny.
This commit is contained in:
Kevin Ryde 2004-05-09 22:46:17 +00:00
parent 3ae69bb422
commit 20fcc8ed86

View file

@ -1485,7 +1485,7 @@ SCM_DEFINE (scm_logbit_p, "logbit?", 2, 0, 0,
if (SCM_INUMP (j)) if (SCM_INUMP (j))
{ {
/* bits above what's in an inum follow the sign bit */ /* bits above what's in an inum follow the sign bit */
iindex = min (iindex, LONG_BIT-1); iindex = min (iindex, SCM_LONG_BIT - 1);
return SCM_BOOL ((1L << iindex) & SCM_INUM (j)); return SCM_BOOL ((1L << iindex) & SCM_INUM (j));
} }
else if (SCM_BIGP (j)) else if (SCM_BIGP (j))