* logbit?
@ 2004-05-09 15:29 Jan Konecny
0 siblings, 0 replies; 3+ messages in thread
From: Jan Konecny @ 2004-05-09 15:29 UTC (permalink / raw)
Hi,
I have found this:
guile> (logbit? 32 1)
#t
guile> (logtest (integer-expt 2 32) 1)
#f
i think it should be both #f.
Jan Konecny
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 3+ messages in thread
* logbit?
@ 2004-05-09 20:03 Jan Konecny
2004-05-09 21:48 ` logbit? Kevin Ryde
0 siblings, 1 reply; 3+ messages in thread
From: Jan Konecny @ 2004-05-09 20:03 UTC (permalink / raw)
Hi,
i'm using guile 1.6.4
guile> (logbit? 32 1)
#t
i think, it should be #f.
Jan Konecny
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: logbit?
2004-05-09 20:03 logbit? Jan Konecny
@ 2004-05-09 21:48 ` Kevin Ryde
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Ryde @ 2004-05-09 21:48 UTC (permalink / raw)
Cc: bug-guile
konecnyj@phoenix.inf.upol.cz (Jan Konecny) writes:
>
> guile> (logbit? 32 1)
> #t
>
> i think, it should be #f.
Thanks, that's a bug.
The "1L << iindex" shift wraps around (on many systems).
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-09 21:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-09 20:03 logbit? Jan Konecny
2004-05-09 21:48 ` logbit? Kevin Ryde
-- strict thread matches above, loose matches on Subject: below --
2004-05-09 15:29 logbit? Jan Konecny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).