mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 14:57:32 +09:00
Issue #1971 - Part 2: Update ICU source to 63.2.
This commit is contained in:
parent
8df84683be
commit
1e69214382
3160 changed files with 275815 additions and 234203 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
||||
// © 2016 and later: Unicode, Inc. and others.
|
||||
// License & terms of use: http://www.unicode.org/copyright.html
|
||||
/*
|
||||
*******************************************************************************
|
||||
|
|
@ -541,8 +541,8 @@ int32_t GregorianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month,
|
|||
}
|
||||
|
||||
UBool isLeap = eyear%4 == 0;
|
||||
int32_t y = eyear-1;
|
||||
int32_t julianDay = 365*y + ClockMath::floorDivide(y, 4) + (kJan1_1JulianDay - 3);
|
||||
int64_t y = (int64_t)eyear-1;
|
||||
int64_t julianDay = 365*y + ClockMath::floorDivide(y, (int64_t)4) + (kJan1_1JulianDay - 3);
|
||||
|
||||
nonConstThis->fIsGregorian = (eyear >= fGregorianCutoverYear);
|
||||
#if defined (U_DEBUG_CAL)
|
||||
|
|
@ -572,7 +572,7 @@ int32_t GregorianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month,
|
|||
julianDay += isLeap?kLeapNumDays[month]:kNumDays[month];
|
||||
}
|
||||
|
||||
return julianDay;
|
||||
return static_cast<int32_t>(julianDay);
|
||||
}
|
||||
|
||||
int32_t GregorianCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue