Skip to content

Commit

Permalink
Pass long to met (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccleva authored Jan 3, 2025
1 parent c29a57e commit 541d90f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ public static int plusYears(int yearsToAdd, int packedDate) {
byte m = getMonthValue(packedDate);
short y = getYear(packedDate);

int newYear = YEAR.checkValidIntValue(yearsToAdd + y);
int newYear = YEAR.checkValidIntValue((long) yearsToAdd + y);
return resolvePreviousValid(newYear, m, d);
}

Expand Down

0 comments on commit 541d90f

Please sign in to comment.