diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2018-08-18 20:40:10 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-08-18 20:41:09 -0700 |
commit | b1840206ff22359fc099236602928e0fb3828d66 (patch) | |
tree | dc7a23519474955ed4efcbd975c79c0629a96a2b /lisp/emacs-lisp/cursor-sensor.el | |
parent | 6eade1efde873d0b048d8f2841646924cb2ceb16 (diff) | |
download | emacs-b1840206ff22359fc099236602928e0fb3828d66.tar.gz emacs-b1840206ff22359fc099236602928e0fb3828d66.tar.bz2 emacs-b1840206ff22359fc099236602928e0fb3828d66.zip |
Minor fixups for intmax_t→mpz_t conversion
* src/alloc.c (mpz_set_intmax_slow): Tighten assertion.
Work even in the unlikely case where libgmp uses nails.
* src/data.c (FIXNUMS_FIT_IN_LONG): New constant.
(arith_driver): Use it to tighten compile-time checks.
* src/lisp.h (mpz_set_intmax): Do not assume that converting
an out-of-range value to ‘long’ is harmless, as it might raise
a signal. Use simpler expression; compiler can optimize.
Diffstat (limited to 'lisp/emacs-lisp/cursor-sensor.el')
0 files changed, 0 insertions, 0 deletions