Add some braces to quiet dangling-else warnings by gcc 2.8.1.

git-svn-id: svn://10.0.0.236/trunk@640 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mccabe
1998-04-25 05:24:42 +00:00
parent 32987e37ee
commit 68bd3eb6a0
2 changed files with 20 additions and 14 deletions

View File

@@ -660,18 +660,21 @@ date_parseString(const jschar *s, jsdouble *result)
if (date_regionMatches(wtb[k], 0, s, st, i-st, 1)) {
int action = ttb[k];
if (action != 0)
if (action == 1) /* pm */
if (hour > 12 || hour < 0)
if (action == 1) { /* pm */
if (hour > 12 || hour < 0) {
goto syntax;
else
} else {
hour += 12;
else if (action <= 13) /* month! */
if (mon < 0)
}
} else if (action <= 13) { /* month! */
if (mon < 0) {
mon = /*byte*/ (action - 2);
else
} else {
goto syntax;
else
}
} else {
tzoffset = action - 10000;
}
break;
}
if (k < 0)

View File

@@ -660,18 +660,21 @@ date_parseString(const jschar *s, jsdouble *result)
if (date_regionMatches(wtb[k], 0, s, st, i-st, 1)) {
int action = ttb[k];
if (action != 0)
if (action == 1) /* pm */
if (hour > 12 || hour < 0)
if (action == 1) { /* pm */
if (hour > 12 || hour < 0) {
goto syntax;
else
} else {
hour += 12;
else if (action <= 13) /* month! */
if (mon < 0)
}
} else if (action <= 13) { /* month! */
if (mon < 0) {
mon = /*byte*/ (action - 2);
else
} else {
goto syntax;
else
}
} else {
tzoffset = action - 10000;
}
break;
}
if (k < 0)