summaryrefslogtreecommitdiff
path: root/doc/lispref/errors.texi
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-11-04 23:17:06 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-11-04 23:39:55 -0800
commit799d738bc7404b5bda4fe3c544a4fc24e6580f46 (patch)
treeabd39a5ad8751314f31a4c34a362a2b2eb04a0fb /doc/lispref/errors.texi
parent5ab29400a4e9b29928aaf63d1f89a0b059491b29 (diff)
downloademacs-799d738bc7404b5bda4fe3c544a4fc24e6580f46.tar.gz
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/errors.texi')
-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}.
@item range-error
The message is @code{Arithmetic range error}.
+
+@item overflow-error
+The message is @samp{Arithmetic overflow error}. This is a subcategory
+of @code{range-error}.
This can happen with integers exceeding the @code{integer-width} limit.
@xref{Integer Basics}.
@@ -229,10 +233,6 @@ mathematical functions. @xref{Math Functions}.
@item domain-error
The message is @samp{Arithmetic domain error}.
-@item overflow-error
-The message is @samp{Arithmetic overflow error}. This is a subcategory
-of @code{domain-error}.
-
@item singularity-error
The message is @samp{Arithmetic singularity error}. This is a
subcategory of @code{domain-error}.