diff options
| author | Stefan Monnier | 2010-09-13 16:40:48 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-09-13 16:40:48 +0200 |
| commit | cc390e46c7ba95b76ea133d98fd386214cd01709 (patch) | |
| tree | ead4400d22bd07214b782ff7e46e79d473fac419 /src/floatfns.c | |
| parent | c566235d981eba73c88bbff00b6a1d88360b6e9f (diff) | |
| parent | c5fe4acb5fb456d6e8e147d8bc7981ce56c5c03d (diff) | |
| download | emacs-cc390e46c7ba95b76ea133d98fd386214cd01709.tar.gz emacs-cc390e46c7ba95b76ea133d98fd386214cd01709.zip | |
Merge from trunk
Diffstat (limited to 'src/floatfns.c')
| -rw-r--r-- | src/floatfns.c | 8 |
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 | |||
| 987 | matherr (struct exception *x) | 987 | matherr (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) |