Bug 511695: Fix JS warnings in MSVC8, r=brendan

This commit is contained in:
David Mandelin
2009-09-23 11:16:30 -07:00
parent 4479b6c7bf
commit 4c73b447b9
19 changed files with 95 additions and 59 deletions

View File

@@ -229,7 +229,7 @@ static intN
DaysInMonth(jsint year, jsint month)
{
JSBool leap = (DaysInYear(year) == 366);
intN result = DayFromMonth(month, leap) - DayFromMonth(month-1, leap);
intN result = intN(DayFromMonth(month, leap) - DayFromMonth(month-1, leap));
return result;
}