aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorPaul Eggert2019-11-04 23:17:06 -0800
committerPaul Eggert2019-11-04 23:39:55 -0800
commit799d738bc7404b5bda4fe3c544a4fc24e6580f46 (patch)
treeabd39a5ad8751314f31a4c34a362a2b2eb04a0fb /doc/lispref
parent5ab29400a4e9b29928aaf63d1f89a0b059491b29 (diff)
downloademacs-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.texi8
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
165The message is @code{Arithmetic range error}. 165The message is @code{Arithmetic range error}.
166
167@item overflow-error
168The message is @samp{Arithmetic overflow error}. This is a subcategory
169of @code{range-error}.
166This can happen with integers exceeding the @code{integer-width} limit. 170This 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
230The message is @samp{Arithmetic domain error}. 234The message is @samp{Arithmetic domain error}.
231 235
232@item overflow-error
233The message is @samp{Arithmetic overflow error}. This is a subcategory
234of @code{domain-error}.
235
236@item singularity-error 236@item singularity-error
237The message is @samp{Arithmetic singularity error}. This is a 237The message is @samp{Arithmetic singularity error}. This is a
238subcategory of @code{domain-error}. 238subcategory of @code{domain-error}.