diff options
| author | Paul Eggert | 2018-09-11 11:21:11 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-09-11 11:34:43 -0700 |
| commit | fa3785ea5fd73eaba84b8e3b8f988dd53f3a4148 (patch) | |
| tree | 3b37f928b5c5b80a92e467f2b49c333e05cf7b3b /src/alloc.c | |
| parent | 94297848332f01a18b5a6a7d29f46d03dcd881ec (diff) | |
| download | emacs-fa3785ea5fd73eaba84b8e3b8f988dd53f3a4148.tar.gz emacs-fa3785ea5fd73eaba84b8e3b8f988dd53f3a4148.zip | |
Use overflow-error for bignum overflow
This better corresponds to what emacs-26 did in the
rare cases where it checked for integer overflow.
* src/alloc.c (range_error): Remove.
All uses changed to overflow_error.
* src/eval.c (overflow_error): New function.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/alloc.c b/src/alloc.c index abb98a9eb68..6bced4e8f01 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -7120,14 +7120,6 @@ verify_alloca (void) | |||
| 7120 | 7120 | ||
| 7121 | #endif /* ENABLE_CHECKING && USE_STACK_LISP_OBJECTS */ | 7121 | #endif /* ENABLE_CHECKING && USE_STACK_LISP_OBJECTS */ |
| 7122 | 7122 | ||
| 7123 | /* Memory allocation for GMP. */ | ||
| 7124 | |||
| 7125 | void | ||
| 7126 | range_error (void) | ||
| 7127 | { | ||
| 7128 | xsignal0 (Qrange_error); | ||
| 7129 | } | ||
| 7130 | |||
| 7131 | /* Initialization. */ | 7123 | /* Initialization. */ |
| 7132 | 7124 | ||
| 7133 | void | 7125 | void |