mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-3659 make max year 1-based
X-SVN-Rev: 15591
This commit is contained in:
parent
d14428ac18
commit
dacd3a9b0a
2 changed files with 4 additions and 4 deletions
|
@ -503,8 +503,8 @@ int32_t JapaneseCalendar::handleGetLimit(UCalendarDateFields field, ELimitType l
|
|||
{
|
||||
Mutex m;
|
||||
if(gJapanYearLimitsKnown==FALSE) {
|
||||
gJapanCalendarLimits[field][UCAL_LIMIT_LEAST_MAXIMUM] = min;
|
||||
gJapanCalendarLimits[field][UCAL_LIMIT_MAXIMUM] = max;
|
||||
gJapanCalendarLimits[field][UCAL_LIMIT_LEAST_MAXIMUM] = ++min; // 1-based
|
||||
gJapanCalendarLimits[field][UCAL_LIMIT_MAXIMUM] = ++max; // 1-based
|
||||
gJapanYearLimitsKnown = TRUE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -553,8 +553,8 @@ public class JapaneseCalendar extends GregorianCalendar {
|
|||
max = d;
|
||||
}
|
||||
}
|
||||
LIMITS[field][LEAST_MAXIMUM] = min;
|
||||
LIMITS[field][MAXIMUM] = max;
|
||||
LIMITS[field][LEAST_MAXIMUM] = ++min; // 1-based
|
||||
LIMITS[field][MAXIMUM] = ++max; // 1-based
|
||||
}
|
||||
return LIMITS[field][limitType];
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue