Skip to content

Commit

Permalink
Update icu4c/source/i18n/persncal.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Scherer <[email protected]>
  • Loading branch information
FrankYFTang and markusicu authored Dec 6, 2024
1 parent 69dd420 commit c5e59cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icu4c/source/i18n/persncal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ static void U_CALLCONV initLeapCorrection() {
};
gMinCorrection = nonLeapYears[0];
icu::UnicodeSet prefab;
for (int32_t i = 0; i < UPRV_LENGTHOF(nonLeapYears); i++) {
prefab.add(nonLeapYears[i]);
for (auto year : nonLeapYears) {
prefab.add(year);
}
gLeapCorrection = prefab.cloneAsThawed();
ucln_i18n_registerCleanup(UCLN_I18N_PERSIAN_CALENDAR, calendar_persian_cleanup);
Expand Down

0 comments on commit c5e59cc

Please sign in to comment.