diff options
| author | Paul Eggert | 2011-03-16 00:47:02 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-16 00:47:02 -0700 |
| commit | a885e2ed791b15dc48a7024751872d2b5bc17034 (patch) | |
| tree | ebba6e97a9dd68f840c2ad5b0104bae14484f9b0 /src/floatfns.c | |
| parent | 1384fa33581c398a3f3393c82be071d5784b0b04 (diff) | |
| download | emacs-a885e2ed791b15dc48a7024751872d2b5bc17034.tar.gz emacs-a885e2ed791b15dc48a7024751872d2b5bc17034.zip | |
* floatfns.c (Ffrexp, Fldexp): Rename locals to avoid shadowing.
Diffstat (limited to 'src/floatfns.c')
| -rw-r--r-- | src/floatfns.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/floatfns.c b/src/floatfns.c index c8b5236d34a..bc03509b757 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -328,9 +328,9 @@ If X is zero, both parts (SGNFCAND and EXP) are zero. */) | |||
| 328 | return Fcons (make_float (0.0), make_number (0)); | 328 | return Fcons (make_float (0.0), make_number (0)); |
| 329 | else | 329 | else |
| 330 | { | 330 | { |
| 331 | int exp; | 331 | int exponent; |
| 332 | double sgnfcand = frexp (f, &exp); | 332 | double sgnfcand = frexp (f, &exponent); |
| 333 | return Fcons (make_float (sgnfcand), make_number (exp)); | 333 | return Fcons (make_float (sgnfcand), make_number (exponent)); |
| 334 | } | 334 | } |
| 335 | } | 335 | } |
| 336 | 336 | ||
| @@ -338,10 +338,10 @@ DEFUN ("ldexp", Fldexp, Sldexp, 1, 2, 0, | |||
| 338 | doc: /* Construct number X from significand SGNFCAND and exponent EXP. | 338 | doc: /* Construct number X from significand SGNFCAND and exponent EXP. |
| 339 | Returns the floating point value resulting from multiplying SGNFCAND | 339 | Returns the floating point value resulting from multiplying SGNFCAND |
| 340 | (the significand) by 2 raised to the power of EXP (the exponent). */) | 340 | (the significand) by 2 raised to the power of EXP (the exponent). */) |
| 341 | (Lisp_Object sgnfcand, Lisp_Object exp) | 341 | (Lisp_Object sgnfcand, Lisp_Object exponent) |
| 342 | { | 342 | { |
| 343 | CHECK_NUMBER (exp); | 343 | CHECK_NUMBER (exponent); |
| 344 | return make_float (ldexp (XFLOATINT (sgnfcand), XINT (exp))); | 344 | return make_float (ldexp (XFLOATINT (sgnfcand), XINT (exponent))); |
| 345 | } | 345 | } |
| 346 | #endif | 346 | #endif |
| 347 | 347 | ||