aboutsummaryrefslogtreecommitdiffstats
path: root/src/floatfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/floatfns.c')
-rw-r--r--src/floatfns.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/floatfns.c b/src/floatfns.c
index 1c3e40eefde..29e5c119a1f 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -987,16 +987,18 @@ int
987matherr (struct exception *x) 987matherr (struct exception *x)
988{ 988{
989 Lisp_Object args; 989 Lisp_Object args;
990 const char *name = x->name;
991
990 if (! in_float) 992 if (! in_float)
991 /* Not called from emacs-lisp float routines; do the default thing. */ 993 /* Not called from emacs-lisp float routines; do the default thing. */
992 return 0; 994 return 0;
993 if (!strcmp (x->name, "pow")) 995 if (!strcmp (x->name, "pow"))
994 x->name = "expt"; 996 name = "expt";
995 997
996 args 998 args
997 = Fcons (build_string (x->name), 999 = Fcons (build_string (name),
998 Fcons (make_float (x->arg1), 1000 Fcons (make_float (x->arg1),
999 ((!strcmp (x->name, "log") || !strcmp (x->name, "pow")) 1001 ((!strcmp (name, "log") || !strcmp (name, "pow"))
1000 ? Fcons (make_float (x->arg2), Qnil) 1002 ? Fcons (make_float (x->arg2), Qnil)
1001 : Qnil))); 1003 : Qnil)));
1002 switch (x->type) 1004 switch (x->type)