removed one goto
This commit is contained in:
parent
b7a6b75155
commit
e967e920be
1 changed files with 10 additions and 10 deletions
|
@ -548,17 +548,18 @@ lexwarning(W_ORDINARY, "overflow in constant");
|
||||||
LoadChar(ch);
|
LoadChar(ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ch == 'E' || ch == 'D') {
|
|
||||||
/* Scale factor
|
|
||||||
*/
|
|
||||||
if (ch == 'D') {
|
if (ch == 'D') {
|
||||||
toktype = longreal_type;
|
toktype = longreal_type;
|
||||||
LoadChar(ch);
|
LoadChar(ch);
|
||||||
if (!(ch == '+' || ch == '-' || is_dig(ch)))
|
if (ch == '+' || ch == '-' || is_dig(ch)) {
|
||||||
goto noscale;
|
ch = 'E';
|
||||||
PushBack();
|
PushBack();
|
||||||
}
|
}
|
||||||
if (np < &buf[NUMSIZE]) *np++ = 'E';
|
}
|
||||||
|
if (ch == 'E') {
|
||||||
|
/* Scale factor
|
||||||
|
*/
|
||||||
|
if (np < &buf[NUMSIZE]) *np++ = ch;
|
||||||
LoadChar(ch);
|
LoadChar(ch);
|
||||||
if (ch == '+' || ch == '-') {
|
if (ch == '+' || ch == '-') {
|
||||||
/* Signed scalefactor
|
/* Signed scalefactor
|
||||||
|
@ -577,7 +578,6 @@ lexwarning(W_ORDINARY, "overflow in constant");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noscale:
|
|
||||||
*np++ = '\0';
|
*np++ = '\0';
|
||||||
PushBack();
|
PushBack();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue