Warning fix.

This commit is contained in:
brendan%mozilla.org 2005-09-06 06:50:45 +00:00
parent 74a91f99c1
commit 085ece7010

View File

@ -802,7 +802,7 @@ date_parseString(JSString *str, jsdouble *result)
ii. If m >= 70, the date is invalid.
*/
if (seenmonthname) {
if (mday >= 70 && year >= 70 || mday < 70 && year < 70) {
if ((mday >= 70 && year >= 70) || (mday < 70 && year < 70)) {
goto syntax;
}
if (mday > year) {