GNU bug report logs -
#32463
27.0.50; (logior -1) => 4611686018427387903
Previous Next
Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>
Date: Fri, 17 Aug 2018 03:31:02 UTC
Severity: normal
Found in version 27.0.50
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Pip Cet wrote:
> Paul committed a patch in the meantime (independently, I think?) which
> does add tests. I'll try to write some more.
Yes, I noticed the logior etc. problem separately and fixed it in master without
knowing about this bug report. There are some other bignum problems too that
need fixing and are in my pipeline.
> can we agree that lsh and ash behave
> the same for bignums?
It would be weird for lsh to act one way for negative bignums, and a different
and incompatible way for negative fixnums. Instead, I suggest that we deprecate
lsh, as it doesn't make sense any more now that integers have unbounded size.
While we're deprecating it, we can make (lsh A B) signal an error if A is a
bignum and B is negative, since there's nothing we can do there that is
reasonable and is compatible with the fixnum behavior.
This bug report was last modified 6 years and 320 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.