aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2019-11-04 23:17:06 -0800
committerPaul Eggert2019-11-04 23:39:55 -0800
commit799d738bc7404b5bda4fe3c544a4fc24e6580f46 (patch)
treeabd39a5ad8751314f31a4c34a362a2b2eb04a0fb /src
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 'src')
-rw-r--r--src/data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data.c b/src/data.c
index a338dadfb69..d968ac9e3a9 100644
--- a/src/data.c
+++ b/src/data.c
@@ -3935,9 +3935,9 @@ syms_of_data (void)
3935 PUT_ERROR (Qsingularity_error, Fcons (Qdomain_error, arith_tail), 3935 PUT_ERROR (Qsingularity_error, Fcons (Qdomain_error, arith_tail),
3936 "Arithmetic singularity error"); 3936 "Arithmetic singularity error");
3937 3937
3938 PUT_ERROR (Qoverflow_error, Fcons (Qdomain_error, arith_tail), 3938 PUT_ERROR (Qoverflow_error, Fcons (Qrange_error, arith_tail),
3939 "Arithmetic overflow error"); 3939 "Arithmetic overflow error");
3940 PUT_ERROR (Qunderflow_error, Fcons (Qdomain_error, arith_tail), 3940 PUT_ERROR (Qunderflow_error, Fcons (Qrange_error, arith_tail),
3941 "Arithmetic underflow error"); 3941 "Arithmetic underflow error");
3942 3942
3943 /* Types that type-of returns. */ 3943 /* Types that type-of returns. */