diff options
| author | Richard M. Stallman | 1993-06-01 20:29:48 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-01 20:29:48 +0000 |
| commit | f8131ed22dca01c445a0031a1f1e9c36279bda92 (patch) | |
| tree | dee12849121d5a378ceca5121f1ad8c2a41fbe4a /src/floatfns.c | |
| parent | 9f717104c4561ddec60549ab22fa4283c6ea5baa (diff) | |
| download | emacs-f8131ed22dca01c445a0031a1f1e9c36279bda92.tar.gz emacs-f8131ed22dca01c445a0031a1f1e9c36279bda92.zip | |
[!FLOAT_CHECK_ERRNO] (IN_FLOAT): New definition.
(Flog): Fix argument of `log'.
Diffstat (limited to 'src/floatfns.c')
| -rw-r--r-- | src/floatfns.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/floatfns.c b/src/floatfns.c index 1b6487afae8..f0222098025 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -154,6 +154,7 @@ static char *float_error_fn_name; | |||
| 154 | } \ | 154 | } \ |
| 155 | } while (0) | 155 | } while (0) |
| 156 | #else | 156 | #else |
| 157 | #define IN_FLOAT(d, name, num) (in_float = 1, (d), in_float = 0) | ||
| 157 | #define IN_FLOAT2(d, name, num, num2) (in_float = 1, (d), in_float = 0) | 158 | #define IN_FLOAT2(d, name, num, num2) (in_float = 1, (d), in_float = 0) |
| 158 | #endif | 159 | #endif |
| 159 | 160 | ||
| @@ -471,7 +472,7 @@ If second optional argument BASE is given, return log ARG using that base.") | |||
| 471 | if (b == 10.0) | 472 | if (b == 10.0) |
| 472 | IN_FLOAT2 (d = log10 (d), "log", arg, base); | 473 | IN_FLOAT2 (d = log10 (d), "log", arg, base); |
| 473 | else | 474 | else |
| 474 | IN_FLOAT2 (d = log (arg) / log (b), "log", arg, base); | 475 | IN_FLOAT2 (d = log (d) / log (b), "log", arg, base); |
| 475 | } | 476 | } |
| 476 | return make_float (d); | 477 | return make_float (d); |
| 477 | } | 478 | } |