]> git.eshelyaron.com Git - emacs.git/commit
Always allow at least double-precision bignums
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 4 Jun 2019 15:13:20 +0000 (08:13 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 4 Jun 2019 15:34:15 +0000 (08:34 -0700)
commit7f4558e3d9edbdee6901e5fbcd4a4072f49ec5b9
treea709f4f82777f6a5e2c16e7d417ba59b74e7b430
parentdd7bc5de3f59237f21e1c4b70f0ba97549ea1fb4
Always allow at least double-precision bignums

Without this fix, Emacs can get into a tight loop reporting
a range error when calculating timestamps.
* doc/lispref/numbers.texi (Integer Basics):
* src/alloc.c (syms_of_alloc): Document this.
* src/bignum.c (make_bignum_bits): Always allow bignums
of at least twice the width of (u)intmax_t.
doc/lispref/numbers.texi
src/alloc.c
src/bignum.c