diff options
Diffstat (limited to 'src/floatfns.c')
| -rw-r--r-- | src/floatfns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/floatfns.c b/src/floatfns.c index 3a95d828c0c..dfe063b152f 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -265,12 +265,12 @@ DEFUN ("tan", Ftan, Stan, 1, 1, 0, | |||
| 265 | (register Lisp_Object arg) | 265 | (register Lisp_Object arg) |
| 266 | { | 266 | { |
| 267 | double d = extract_float (arg); | 267 | double d = extract_float (arg); |
| 268 | double c = cos (d); | ||
| 269 | #ifdef FLOAT_CHECK_DOMAIN | 268 | #ifdef FLOAT_CHECK_DOMAIN |
| 269 | double c = cos (d); | ||
| 270 | if (c == 0.0) | 270 | if (c == 0.0) |
| 271 | domain_error ("tan", arg); | 271 | domain_error ("tan", arg); |
| 272 | #endif | 272 | #endif |
| 273 | IN_FLOAT (d = sin (d) / c, "tan", arg); | 273 | IN_FLOAT (d = tan (d), "tan", arg); |
| 274 | return make_float (d); | 274 | return make_float (d); |
| 275 | } | 275 | } |
| 276 | 276 | ||