mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-21 20:20:24 +02:00
More of:
(scm_logbit_p): Correction to test above the end of an inum. Reported by Jan Konecny.
This commit is contained in:
parent
3ae69bb422
commit
20fcc8ed86
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue