summaryrefslogtreecommitdiff
path: root/src/internal/floatscan.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-04-11 21:29:12 -0400
committerRich Felker <dalias@aerifal.cx>2012-04-11 21:29:12 -0400
commit96acdae944f44a4a757cd98de297490fea2dddb5 (patch)
tree7a9d6ad35fa8e0d022077ff1872ff3c5aed7b083 /src/internal/floatscan.c
parent5595de69608cbb250a8019d1ec5db22bcd32795b (diff)
downloadmusl-96acdae944f44a4a757cd98de297490fea2dddb5.tar.gz
fix stupid typo in floatscan that caused excess rounding of some values
Diffstat (limited to 'src/internal/floatscan.c')
-rw-r--r--src/internal/floatscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/floatscan.c b/src/internal/floatscan.c
index b2313293..a76daa46 100644
--- a/src/internal/floatscan.c
+++ b/src/internal/floatscan.c
@@ -159,7 +159,7 @@ static long double decfloat(FILE *f, int c, int bits, int emin, int sign, int po
rp += 9-rpm9;
}
- while (rp < 9*LD_B1B_DIG || (rp == 9*LD_B1B_DIG && x[0]<th[0])) {
+ while (rp < 9*LD_B1B_DIG || (rp == 9*LD_B1B_DIG && x[a]<th[0])) {
uint32_t carry = 0;
e2 -= 29;
for (k=(z-1 & MASK); ; k=(k-1 & MASK)) {