diff options
| author | Paul Eggert | 2019-11-04 23:17:06 -0800 |
|---|---|---|
| committer | Paul Eggert | 2019-11-04 23:39:55 -0800 |
| commit | 799d738bc7404b5bda4fe3c544a4fc24e6580f46 (patch) | |
| tree | abd39a5ad8751314f31a4c34a362a2b2eb04a0fb /doc/lispref | |
| parent | 5ab29400a4e9b29928aaf63d1f89a0b059491b29 (diff) | |
| download | emacs-799d738bc7404b5bda4fe3c544a4fc24e6580f46.tar.gz emacs-799d738bc7404b5bda4fe3c544a4fc24e6580f46.zip | |
Overflow errors are range errors
* etc/NEWS: Mention this.
* doc/lispref/errors.texi (Standard Errors):
Document overflow-error, which was formerly undocumented.
It is a range error, not a domain error.
* src/data.c (syms_of_data): overflow-error and (undocumented)
underflow-error are subtypes range-error, not domain-error.
This fixes bugs in timezone-time-from-absolute and in
erc-ctcp-reply-PING.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/errors.texi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/lispref/errors.texi b/doc/lispref/errors.texi index cf9b67c80d8..dc9089ad1e3 100644 --- a/doc/lispref/errors.texi +++ b/doc/lispref/errors.texi | |||
| @@ -163,6 +163,10 @@ The message is @samp{Attempt to modify a protected file}. | |||
| 163 | 163 | ||
| 164 | @item range-error | 164 | @item range-error |
| 165 | The message is @code{Arithmetic range error}. | 165 | The message is @code{Arithmetic range error}. |
| 166 | |||
| 167 | @item overflow-error | ||
| 168 | The message is @samp{Arithmetic overflow error}. This is a subcategory | ||
| 169 | of @code{range-error}. | ||
| 166 | This can happen with integers exceeding the @code{integer-width} limit. | 170 | This can happen with integers exceeding the @code{integer-width} limit. |
| 167 | @xref{Integer Basics}. | 171 | @xref{Integer Basics}. |
| 168 | 172 | ||
| @@ -229,10 +233,6 @@ mathematical functions. @xref{Math Functions}. | |||
| 229 | @item domain-error | 233 | @item domain-error |
| 230 | The message is @samp{Arithmetic domain error}. | 234 | The message is @samp{Arithmetic domain error}. |
| 231 | 235 | ||
| 232 | @item overflow-error | ||
| 233 | The message is @samp{Arithmetic overflow error}. This is a subcategory | ||
| 234 | of @code{domain-error}. | ||
| 235 | |||
| 236 | @item singularity-error | 236 | @item singularity-error |
| 237 | The message is @samp{Arithmetic singularity error}. This is a | 237 | The message is @samp{Arithmetic singularity error}. This is a |
| 238 | subcategory of @code{domain-error}. | 238 | subcategory of @code{domain-error}. |