X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Finternal%2Ffloatscan.c;h=f6e331d45d52d95f0b6ea8358658da9c6b29d595;hp=f80db3839ea87ec2d0513f6c4f4bb1eff0aba05e;hb=9448b0513e2eec020fbca9c10412b83df5027a16;hpb=02eb568dedadb3d66c2751aba6bea559370ff32c diff --git a/src/internal/floatscan.c b/src/internal/floatscan.c index f80db383..f6e331d4 100644 --- a/src/internal/floatscan.c +++ b/src/internal/floatscan.c @@ -4,6 +4,7 @@ #include #include #include +#include #include "shgetc.h" #include "floatscan.h" @@ -199,11 +200,11 @@ static long double decfloat(FILE *f, int c, int bits, int emin, int sign, int po } if (carry) { rp += 9; + a = (a-1 & MASK); if (a == z) { z = (z-1 & MASK); x[z-1 & MASK] |= x[z]; } - a = (a-1 & MASK); x[a] = carry; } } @@ -244,7 +245,7 @@ static long double decfloat(FILE *f, int c, int bits, int emin, int sign, int po /* Assemble desired bits into floating point variable */ for (y=i=0; i