summaryrefslogtreecommitdiff
path: root/lib/frexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/frexp.c')
-rw-r--r--lib/frexp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/frexp.c b/lib/frexp.c
index 18b95f6c..4679de86 100644
--- a/lib/frexp.c
+++ b/lib/frexp.c
@@ -1,5 +1,5 @@
/* Split a double into fraction and mantissa.
- Copyright (C) 2007-2025 Free Software Foundation, Inc.
+ Copyright (C) 2007-2026 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
@@ -57,8 +57,6 @@
DOUBLE
FUNC (DOUBLE x, int *expptr)
{
- int sign;
- int exponent;
DECL_ROUNDING
/* Test for NaN, infinity, and zero. */
@@ -68,7 +66,7 @@ FUNC (DOUBLE x, int *expptr)
return x;
}
- sign = 0;
+ int sign = 0;
if (x < 0)
{
x = - x;
@@ -77,6 +75,8 @@ FUNC (DOUBLE x, int *expptr)
BEGIN_ROUNDING ();
+ int exponent;
+
{
/* Since the exponent is an 'int', it fits in 64 bits. Therefore the
loops are executed no more than 64 times. */