зеркало из https://github.com/mozilla/pjs.git
Tab and style policing.
This commit is contained in:
Родитель
24e75f93a3
Коммит
a70f73c85f
|
@ -359,14 +359,15 @@ static jsint yearStartingWith[2][7] = {
|
|||
* incorrect year for times near year boundaries.
|
||||
*/
|
||||
static jsint
|
||||
EquivalentYearForDST(jsint year) {
|
||||
EquivalentYearForDST(jsint year)
|
||||
{
|
||||
jsint day;
|
||||
JSBool isLeapYear;
|
||||
|
||||
day = (jsint) DayFromYear(year) + 4;
|
||||
day = day % 7;
|
||||
if (day < 0)
|
||||
day += 7;
|
||||
day += 7;
|
||||
|
||||
isLeapYear = (DaysInYear(year) == 366);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче