mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
lavu/avsscanf: Do not mix declaration and code.
Fixes the following warning: libavutil/avsscanf.c: In function 'decfloat': libavutil/avsscanf.c:354:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] int bitlim = bits-3*(int)(rp-9); ^~~
This commit is contained in:
parent
d3621b2321
commit
529debc987
@ -349,9 +349,10 @@ static double decfloat(FFFILE *f, int c, int bits, int emin, int sign, int pok)
|
|||||||
|
|
||||||
/* Optimize small to mid-size integers (even in exp. notation) */
|
/* Optimize small to mid-size integers (even in exp. notation) */
|
||||||
if (lnz<9 && lnz<=rp && rp < 18) {
|
if (lnz<9 && lnz<=rp && rp < 18) {
|
||||||
|
int bitlim;
|
||||||
if (rp == 9) return sign * (double)x[0];
|
if (rp == 9) return sign * (double)x[0];
|
||||||
if (rp < 9) return sign * (double)x[0] / p10s[8-rp];
|
if (rp < 9) return sign * (double)x[0] / p10s[8-rp];
|
||||||
int bitlim = bits-3*(int)(rp-9);
|
bitlim = bits-3*(int)(rp-9);
|
||||||
if (bitlim>30 || x[0]>>bitlim==0)
|
if (bitlim>30 || x[0]>>bitlim==0)
|
||||||
return sign * (double)x[0] * p10s[rp-10];
|
return sign * (double)x[0] * p10s[rp-10];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user