@@ -153,7 +153,7 @@ public class JewishDate implements Comparable<JewishDate>, Cloneable {
153
153
/** The number of <em>chalakim</em> (1080) in an hour.*/
154
154
private static final int CHALAKIM_PER_HOUR = 1080 ;
155
155
/** The number of <em>chalakim</em> (25,920) in a 24-hour day .*/
156
- private static final int CHALAKIM_PER_DAY = 25920 ; // 24 * 1080
156
+ private static final long CHALAKIM_PER_DAY = 25920 ; // 24 * 1080
157
157
/** The number of <em>chalakim</em> in an average Jewish month. A month has 29 days, 12 hours and 793
158
158
* <em>chalakim</em> (44 minutes and 3.3 seconds) for a total of 765,433 <em>chalakim</em>*/
159
159
private static final long CHALAKIM_PER_MONTH = 765433 ; // (29 * 24 + 12) * 1080 + 793
@@ -460,8 +460,8 @@ private static int getLastMonthOfJewishYear(int year) {
460
460
*/
461
461
public static int getJewishCalendarElapsedDays (int year ) {
462
462
long chalakimSince = getChalakimSinceMoladTohu (year , TISHREI );
463
- int moladDay = (int ) (chalakimSince / ( long ) CHALAKIM_PER_DAY );
464
- int moladParts = (int ) (chalakimSince - moladDay * ( long ) CHALAKIM_PER_DAY );
463
+ int moladDay = (int ) (chalakimSince / CHALAKIM_PER_DAY );
464
+ int moladParts = (int ) (chalakimSince - moladDay * CHALAKIM_PER_DAY );
465
465
// delay Rosh Hashana for the 4 dechiyos
466
466
return addDechiyos (year , moladDay , moladParts );
467
467
}
@@ -908,8 +908,8 @@ private static int moladToAbsDate(long chalakim) {
908
908
public JewishDate (long molad ) {
909
909
absDateToDate (moladToAbsDate (molad ));
910
910
// long chalakimSince = getChalakimSinceMoladTohu(year, TISHREI);// tishrei
911
- int conjunctionDay = (int ) (molad / ( long ) CHALAKIM_PER_DAY );
912
- int conjunctionParts = (int ) (molad - conjunctionDay * ( long ) CHALAKIM_PER_DAY );
911
+ int conjunctionDay = (int ) (molad / CHALAKIM_PER_DAY );
912
+ int conjunctionParts = (int ) (molad - conjunctionDay * CHALAKIM_PER_DAY );
913
913
setMoladTime (conjunctionParts );
914
914
}
915
915
0 commit comments